| 1 | #备注:此皮肤conf文件作为范本,包含有各个字段的详细说明。 |
| 2 | # --- By Lenky 2013-9-12 |
| 3 | |
| 4 | [SkinInfo] |
| 5 | #名词 |
| 6 | Name=ubuntu-grey |
| 7 | #版本 |
| 8 | Version=0.1 |
| 9 | #作者 |
| 10 | Author=Ou Yangyu |
| 11 | #描述 |
| 12 | Desc=ubuntu-grey |
| 13 | |
| 14 | [SkinFont] |
| 15 | #输入字符串的字体大小,以points为单位计算 |
| 16 | FontSize=13 |
| 17 | #候选词前的数字标号和候选词的字体大小,以points为单位计算 |
| 18 | CandFontSize=13 |
| 19 | #输入字符串的字体颜色,按RGB的十进制计算,比如#1a9bff则为:十六进制1a为十进制25,十六进制9b为十进制155,十六进制ff为十进制255 |
| 20 | InputColor=255 255 255 |
| 21 | #候选词前的数字标号的字体颜色 |
| 22 | IndexColor=255 255 255 |
| 23 | #首选候选词的字体颜色 |
| 24 | FirstCandColor=228 109 67 |
| 25 | #其他候选词的字体颜色 |
| 26 | OtherColor=255 255 255 |
| 27 | |
| 28 | #================================================== |
| 29 | #以下字段在qim-panel暂时没用到,仅为了兼容fcitx |
| 30 | #因为默认启动fcitx时,会检查皮肤文件是否正确,如果没有下面这些字段, |
| 31 | #那么检查结果为错误,导致把皮肤退回为default,导致再启动qim-panel就 |
| 32 | #使用的也是default了。 |
| 33 | TipColor=162 181 255 |
| 34 | UserPhraseColor=255 255 143 |
| 35 | CodeColor=26 155 255 |
| 36 | ActiveMenuColor=255 255 255 |
| 37 | InactiveMenuColor=178 178 178 |
| 38 | |
| 39 | [SkinMainBar] |
| 40 | BackImg=bar.png |
| 41 | Logo=logo.png |
| 42 | Eng=en.png |
| 43 | Active=cn.png |
| 44 | MarginLeft=8 |
| 45 | MarginRight=8 |
| 46 | MarginTop=8 |
| 47 | MarginBottom=8 |
| 48 | |
| 49 | [SkinTrayIcon] |
| 50 | Active=active.png |
| 51 | Inactive=inactive.png |
| 52 | |
| 53 | [SkinMenu] |
| 54 | BackImg=menu.png |
| 55 | MarginLeft=8 |
| 56 | MarginRight=8 |
| 57 | MarginTop=8 |
| 58 | MarginBottom=8 |
| 59 | ActiveColor=50 87 244 |
| 60 | LineColor=204 204 204 |
| 61 | |
| 62 | [SkinKeyboard] |
| 63 | # Virtual Keyboard Image |
| 64 | BackImg=keyboard.png |
| 65 | # Key Color On Virutal Keyboard |
| 66 | KeyColor=101 153 209 |
| 67 | #以上字段在qim-panel暂时没用,仅为了兼容fcitx |
| 68 | #================================================== |
| 69 | |
| 70 | #说明1:以下几个坐标以均以整个面板的左上角为原点(0, 0) |
| 71 | # (0, 0) |
| 72 | # -----------------------------------> |
| 73 | # | |
| 74 | # | (x, y) |
| 75 | # | |
| 76 | # | |
| 77 | # | |
| 78 | # | |
| 79 | # V |
| 80 | |
| 81 | #说明2:输入面板主要有四个元素,分别为输入字符串(InputString),候选词(OutputCand),左翻页(BackArrow),右翻页(ForwardArrow) |
| 82 | #默认的横向布局为(以5个候选词为例): |
| 83 | # --------------------------------------------------------------------------- |
| 84 | # | [InputString] [BackArrow] [ForwardArrow] | |
| 85 | # | [OutputCand1] [OutputCand2] [OutputCand3] [OutputCand4] [OutputCand5] | |
| 86 | # --------------------------------------------------------------------------- |
| 87 | |
| 88 | #默认的纵向布局为: |
| 89 | # ------------------------------------------------- |
| 90 | # | [InputString] [BackArrow] [ForwardArrow] | |
| 91 | # | [OutputCand1] | |
| 92 | # | [OutputCand2] | |
| 93 | # | [OutputCand3] | |
| 94 | # | [OutputCand4] | |
| 95 | # | [OutputCand5] | |
| 96 | # ------------------------------------------------- |
| 97 | |
| 98 | #说明3:所有文本或图片的配置坐标均以其左上角为准,所以,如果填写负数的话,需要考虑把文本或图片的宽和高预计在内 |
| 99 | |
| 100 | #说明4:因为整个输入面板的宽和高是动态变化的,其计算方法是: |
| 101 | #高:四个元素InputString OutputCand BackArrow ForwardArrow中靠最下方的那个元素的bottom值 再 加上 MarginBottom + AdjustHeight 为整个面板的高度 |
| 102 | #宽:四个元素InputString OutputCand BackArrow ForwardArrow中靠最右方的那个元素的right值 再 加上 MarginRight + AdjustWidth 为整个面板的宽度 |
| 103 | |
| 104 | #横向布局 |
| 105 | [SkinInputBar] |
| 106 | #面板宽度调节,可正可负,默认为0 |
| 107 | AdjustWidth=0 |
| 108 | #面板高度调节,可正可负,默认为0 |
| 109 | AdjustHeight=0 |
| 110 | |
| 111 | #输入面板时的背景图片 |
| 112 | BackImg=input.png |
| 113 | #切换时提示信息的背景图片 |
| 114 | TipsImg=tips.png |
| 115 | |
| 116 | #关于皮肤九宫格的特性可以参考:http://doc.qt.io/qt-5/qml-qtquick-borderimage.html |
| 117 | #简单点说就是:左上、左下、右上、右下,这四个角落不会被拉伸,而上下会水平拉伸,左右会垂直拉伸,而中间既会水平拉伸,也会垂直拉伸 |
| 118 | #因此要把一些不让变形的logo等图片放置在左上、左下、右上、右下,这四个区域 |
| 119 | #下面这个值用于标记整个九宫格布局 |
| 120 | #九宫格的左边距 |
| 121 | MarginLeft=17 |
| 122 | #九宫格的右边距,必须为正数,表示离右边的距离 |
| 123 | MarginRight=90 |
| 124 | #九宫格的上边距 |
| 125 | MarginTop=25 |
| 126 | #九宫格的下边距,必须为正数,表示离下边的距离 |
| 127 | MarginBottom=6 |
| 128 | #水平拉伸时填充方式,可选值:Stretch,伸缩填充;Repeat,重复填充;Round,重复填充,但可以保证最后一个重复也是完整的,因此会进行适当伸缩 |
| 129 | #默认为Stretch |
| 130 | horizontalTileMode=Stretch |
| 131 | #垂直拉伸时填充方式,可选值:Stretch,伸缩填充;Repeat,重复填充;Round,重复填充,但可以保证最后一个重复也是完整的,因此会进行适当伸缩 |
| 132 | #默认为Stretch |
| 133 | verticalTileMode=Stretch |
| 134 | |
| 135 | #输入字符串位置X坐标,为0则默认为MarginLeft,为负数则从最右边往左推进的距离 |
| 136 | InputStringPosX=0 |
| 137 | #输入字符串位置Y坐标,为0则默认为MarginTop,为负数则从最底边往上推进的距离 |
| 138 | InputStringPosY=4 |
| 139 | #输出候选词位置X坐标,为0则默认为MarginLeft,为负数则从最右边往左推进的距离 |
| 140 | OutputCandPosX=0 |
| 141 | #输出候选词位置Y坐标,为0则默认为(MarginTop + 输入字符串的高度),为负数则从最底边往上推进的距离 |
| 142 | OutputCandPosY=30 |
| 143 | #左翻页图片 |
| 144 | BackArrow=prev.png |
| 145 | #左翻页图片位置X坐标,为0则默认为从最右边往左推进的(左翻页图片宽度 + 右翻页图片宽度 + 15)的距离,为负数则从最右边往左推进的距离 |
| 146 | BackArrowPosX=-50 |
| 147 | #左翻页图片位置Y坐标,为0则默认为InputStringPosY,为负数则从最底边往上推进的距离 |
| 148 | BackArrowPosY=5 |
| 149 | #右翻页图片 |
| 150 | ForwardArrow=next.png |
| 151 | #右翻页图片位置X坐标,为0则默认为从最右边往左推进的(右翻页图片宽度 + 10)的距离,为负数则从最右边往左推进的距离 |
| 152 | ForwardArrowPosX=-40 |
| 153 | #右翻页图片位置Y坐标,为0则默认为InputStringPosY,为负数则从最底边往上推进的距离 |
| 154 | ForwardArrowPosY=5 |
| 155 | |
| 156 | #================================================== |
| 157 | #以下字段在qim-panel暂时没用到,仅为了兼容fcitx |
| 158 | #因为默认启动fcitx时,会检查皮肤文件是否正确,如果没有下面这些字段, |
| 159 | #那么检查结果为错误,导致把皮肤退回为default,导致再启动qim-panel就 |
| 160 | #使用的也是default了。 |
| 161 | InputPos=0 |
| 162 | OutputPos=26 |
| 163 | BackArrowX=20 |
| 164 | BackArrowY=6 |
| 165 | ForwardArrowX=10 |
| 166 | ForwardArrowY=6 |
| 167 | CursorColor=255 255 255 |
| 168 | #================================================== |
| 169 | |
| 170 | #纵向布局 |
| 171 | #说明:如果和横向布局的配置一致,纵向布局里可以不用重复设置 |
| 172 | #比如横向布局里的FontSize为16,如果纵向布局里的FontSize也是16,那么可以不配置该字段或配置该字段为0 |
| 173 | [SkinFontVertical] |
| 174 | |
| 175 | [SkinInputBarVertical] |
| 176 | #面板宽度调节,可正可负 |
| 177 | AdjustWidth=10 |
| 178 | #面板高度调节,可正可负 |
| 179 | AdjustHeight=-30 |
| 180 | |
| 181 | BackImg=input_v.png |
| 182 | |
| 183 | MarginTop=50 |
| 184 | MarginBottom=48 |
| 185 |