Giter VIP home page Giter VIP logo

fcitx5-material-color's Introduction

Material-Color

一款使用 Material Design 配色的 fcitx5 皮肤,旨在模仿 Windows 10 自带输入法的 UI。

使用方式

安装

发行版包管理器

  • Arch Linux: pacman -S fcitx5-material-color
  • Debian: apt install fcitx5-material-color

然后修改配置文件 ~/.config/fcitx5/conf/classicui.conf

# 垂直候选列表
Vertical Candidate List=False

# 按屏幕 DPI 使用
PerScreenDPI=True

# Font (设置成你喜欢的字体)
Font="思源黑体 CN Medium 13"

# 主题
Theme=Material-Color-Pink

根据颜色不同,使用以下主题名称:

  • Material-Color-Pink
  • Material-Color-Blue
  • Material-Color-Brown
  • Material-Color-DeepPurple
  • Material-Color-Indigo
  • Material-Color-Red
  • Material-Color-Teal
  • Material-Color-Black
  • Material-Color-Orange
  • Material-Color-SakuraPink

手动安装

mkdir -p ~/.local/share/fcitx5/themes/Material-Color
git clone https://github.com/hosxy/Fcitx5-Material-Color.git ~/.local/share/fcitx5/themes/Material-Color

手动设置配色方案

手动设置/切换配色方案需要使用命令行,比如将配色方案设置/切换为 blue:

cd ~/.local/share/fcitx5/themes/Material-Color
ln -sf ./theme-blue.conf theme.conf
  • Tips 1:第一次使用时必须设置一种配色方案(否则会打回原形)
  • Tips 2:设置/切换配色方案后需要重启输入法以生效

启用主题

修改配置文件 ~/.config/fcitx5/conf/classicui.conf

# 垂直候选列表
Vertical Candidate List=False

# 按屏幕 DPI 使用
PerScreenDPI=True

# Font (设置成你喜欢的字体)
Font="思源黑体 CN Medium 13"

# 主题
Theme=Material-Color

更新

想要更新这个皮肤很简单,打开一个终端,执行以下命令:

cd ~/.local/share/fcitx5/themes/Material-Color
git pull

单行模式 (inline preedit)

要使用单行模式,

  • 对于 fcitx5 自带的 pinyin,请修改 ~/.config/fcitx5/conf/pinyin.conf
  • 对于 fcitx5-rime,请新建/修改 ~/.config/fcitx5/conf/rime.conf

加入/修改以下内容:

# 可用时在应用程序中显示预编辑文本
PreeditInApplication=True

注意:修改配置文件 ~/.config/fcitx5/profile 时,请务必退出 fcitx5 输入法,否则会因为输入法退出时会覆盖配置文件导致之前的修改被覆盖;修改其他配置文件可以不用退出 fcitx5 输入法,重启生效。

截图

双行模式

No-Preedit

漂亮的单行模式

pink

粉红色

blue

蓝色

brown

棕色

deep purple

深紫色

indigo

Indigo

red

红色

teal

Teal

black

Black

orange

Orange

sakuraPink

sakuraPink

备注

  1. 使用 xim 的程序(非 GTK 非 Qt 程序)中无法使用单行模式,如 xterm, alacritty…
  2. 较新版本 fcitx5 默认禁用了 gvim 的单行模式,若需启用,只需将环境变量 FCITX_NO_PREEDIT_APPS 设置为空即可。

fcitx5-material-color's People

Contributors

ayaka14732 avatar buuuuuuuuuu avatar chenshijie-uos avatar felixonmars avatar hinatakato avatar hosiet avatar hosxy avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

fcitx5-material-color's Issues

能否把图片改大一些?

我使用竖排候选列表,默认的输入框尺寸显得有点小,我把四周的边距改大了一点后发现高亮的背景图片覆盖不了输入框的边缘了。

下面是截图,可以看到输入框右边有个白边:
Screenshot_20200724_184437

About the font name used by Fcitx5-Material-Color.

On Ubuntu 20.04, I noticed I've the following fonts:

werner@X10DAi:~$ fc-list -b|grep -i 'fullname:' | grep '.*DejaVuSansMono' | sort -u
	fullname: "DejaVuSansMono YaHei Nerd Font Bold"(s)
	fullname: "DejaVuSansMono YaHei Nerd Font Oblique"(s)
	fullname: "DejaVuSansMono YaHei NF"(s)
werner@X10DAi:~$ fc-list -b|grep -i 'family:' | grep '.*DejaVuSansMono Nerd Font Mono' | sort -u
	family: "DejaVuSansMono Nerd Font Mono"(s)

I want to know for setting the Fcitx5-Material-Color, which name should I use, the fullname of the font or the family name?

请问我应该如何设置回单行模式

我已经参考过Archwiki以及本仓库的README.md了,但是还是无法设置会单行模式,都在配置文件中写入了
`

可用时在应用程序中显示预编辑文本

PreeditInApplication=True
`
也重启过输入法,但是仍然无法生效

ubuntu 20.04上最新版本无法显示边框

不知道为何ubuntu 20.04上边框没有绘制成功,绘制功能对fcitx5版本有和要求吗?
我已经退回到c5f2405 - update README amd some fix (4 个月前) 后目前正常使用

一直是单行模式

都设置成false了,但是还是不行,而且单行模式不知道键盘怎么用。

关闭背景透明

作者你好,我根据你发的主题,改了版暗色主题,发现背景是透明的,找了下没发现设置透明度的地方,想问下这个是在那设置?
我做的是picom+dwm+fcitx5

还有个问题是,有没有地方可以设置 候选框不跟随光标向右移动啊,类似mac自带输入法的那种体验

Tag a commit as release

Thanks for you work on this beautiful Fcitx5 theme. A release tag will be helpful for distro packager to package it. Would you like to add one?

No color render.

Hello, thanks for your beautiful theme. I used this theme in Manjaro, which worked perfectly. But when using this theme in Ubuntu 20.22, it can not render the color in the border.

image

My fcitx5 version is 5.0.14

Thanks in advance.

能否在背景加上阴影,不让它贴在屏幕上

如题,现在输入时是贴在屏幕上的,个人感觉有点难受,能否手动在背景图片上制造阴影以达到效果。当然您已经改成fcitx5自绘了,如果您觉得没有必要的话就算了吧,或者我应该去fcitx5那边问一下。

建议说明arch系linux安装方式

arch系linux可以直接使用包管理器安装
yay -S community/fcitx5-material-color

安装后在fcitx设置菜单中,设置主题为下面这些之一即可.

  • Material-Color-Brown
  • Material-Color-Indigo
  • Material-Color-Red
  • Material-Color-Blue
  • Material-Color-DeepPurple
  • Material-Color-Pink
  • Material-Color-Teal

image

单行模式需要手动设置.

自定义配置的问题

我是从 debian 的软件仓库中安装的,请问应该在哪修改配置呢?

在 /usr/share/... 目录下修改了 theme.conf 之后,如果软件包更新了,这里的文件内容就会被重置。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.