File: README.md

package info (click to toggle)
fcitx5-material-color 0.2.1-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, sid, trixie
  • size: 268 kB
  • sloc: makefile: 13
file content (157 lines) | stat: -rw-r--r-- 3,360 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
# Material-Color

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

# 使用方式

## 安装

### 发行版包管理器

+ **Arch Linux**: `pacman -S fcitx5-material-color`
+ **[Debian](https://tracker.debian.org/pkg/fcitx5-material-color)**: `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

### 手动安装

```sh
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:

```sh
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
```

**更新**

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

```sh
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](./screenshot/No-Preedit.png)

## 漂亮的单行模式

### pink

![粉红色](./screenshot/pink.png)

### blue

![蓝色](./screenshot/blue.png)

### brown

![棕色](./screenshot/brown.png)

### deep purple

![深紫色](./screenshot/deepPurple.png)

### indigo

![Indigo](./screenshot/indigo.png)

### red

![红色](./screenshot/red.png)

### teal

![Teal](./screenshot/teal.png)

### black

![Black](./screenshot/black.png)

### orange

![Orange](./screenshot/orange.png)

### sakuraPink

![sakuraPink](./screenshot/sakuraPink.png)


# 备注

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