VOID001 / ssf2fcitx

Automagically convert your favorite sogou-pinyin skin to fcitx skin
Other
130 stars 12 forks source link

skin not completely covered #7

Open MarvelousBlack opened 5 years ago

MarvelousBlack commented 5 years ago

img_20181008_131508 screenshot_vnc_viewer_20181008-132236 2 Just like the picture, some ssf skin not completely covered, will left a transparent box.

VOID001 commented 5 years ago

Thanks, could you please provide the URL for the skin ssf file? I will dig into it sooner or later

MarvelousBlack commented 5 years ago

https://pinyin.sogou.com/skins/detail/view/info/587050

VOID001 commented 5 years ago

Hi, I tried this skin and everything works fine. Could you please try again with the skin with the latest version source code? Could you please provide the output result of ls -al /path/to/skin/directory/ and paste the fcitx_skin.conf file in the directory?

MarvelousBlack commented 5 years ago
$ ls -al ./???????
total 192
drwxr-xr-x 2 marvelous users  4096 Oct  8 23:40 .
drwxr-xr-x 7 marvelous users  4096 Oct  8 23:40 ..
-rw-r--r-- 1 marvelous users 18132 Oct  8 23:40 15379367626810_former.png
-rw-r--r-- 1 marvelous users  1105 Oct  8 23:40 a3.png
-rw-r--r-- 1 marvelous users  1135 Oct  8 23:40 ban3.png
-rw-r--r-- 1 marvelous users  9788 Oct  8 23:40 bar.png
-rw-r--r-- 1 marvelous users  1101 Oct  8 23:40 cn3.png
-rw-r--r-- 1 marvelous users  1065 Oct  8 23:40 cn_biaodian3.png
-rw-r--r-- 1 marvelous users 22821 Oct  8 23:40 comp_587050.png
-rw-r--r-- 1 marvelous users  1210 Oct  8 23:40 en3.png
-rw-r--r-- 1 marvelous users  1010 Oct  8 23:40 en_biaodian3.png
-rw-r--r-- 1 marvelous users  1041 Oct  8 23:40 fcitx_skin.conf
-rw-r--r-- 1 marvelous users  1063 Oct  8 23:40 quan3.png
-rw-r--r-- 1 marvelous users  3788 Oct  8 23:40 skin.ini
-rw-r--r-- 1 marvelous users  1975 Oct  8 23:40 skin.ini.u8
-rw-r--r-- 1 marvelous users 23499 Oct  8 23:40 skin1.png
-rw-r--r-- 1 marvelous users 16697 Oct  8 23:40 skin1_2.png
-rw-r--r-- 1 marvelous users 18797 Oct  8 23:40 skin2.png
-rw-r--r-- 1 marvelous users  1765 Oct  8 23:40 skin2_1.png
-rw-r--r-- 1 marvelous users 15098 Oct  8 23:40 skin2_2.png
-rw-r--r-- 1 marvelous users  1171 Oct  8 23:40 skinmanager3.png
$ cat ./???????/fcitx_skin.conf 
[SkinFont]
ActiveMenuColor=204 41 76
CodeColor=128 64 64
FirstCandColor=255 0 0
FontSize=16
InactiveMenuColor=255 223 231
IndexColor=128 64 64
InputColor=128 64 64
MenuFontSize=13
OtherColor=128 64 64
RespectDPI=true
TipColor=37 191 237
UserPhraseColor=128 64 64

[SkinInfo]
Author=???<13001838582@sohu.com>
Desc=??????
Name=[CONVERT FROM SSF]???????
Version=0.9

[SkinInputBar]
BackArrow=prev.png
BackArrowX=140
BackArrowY=175
BackImg=skin1.png
CursorColor=255 255 255
FillHorizontal=Copy
ForwardArrow=next.png
ForwardArrowX=130
ForwardArrowY=175
InputPos=-4
MarginBottom=14
MarginLeft=66
MarginRight=227
MarginTop=109
OutputPos=27

[SkinKeyboard]
KeyColor=105 21 20

[SkinMainBar]
Active=cn3.png
BackImg=bar.png
Eng=en3.png
Logo=logo.png
MarginBottom=25
MarginLeft=45
MarginRight=50
MarginTop=40

[SkinMenu]
ActiveColor=255 223 231
BackImg=menu.png
FillHorizontal=Copy
LineColor=255 223 231
MarginBottom=162
MarginLeft=50
MarginRight=180
MarginTop=27

[SkinTrayIcon]
Active=active.png
Inactive=inactive.png
whoisnian commented 5 years ago

When I use this skin in KDE, the skin works fine. I think that what the skin menu look like depends on fcitx-kcm. When I use it in i3wm, the bug appeared. Because I use fcitx-configtool but not fcitx-kcm in my i3wm. Maybe the [SkinMenu] in fcitx_skin.conf works in fcitx-configtool.

MarvelousBlack commented 5 years ago

photo_2018-10-13_11-59-22 yes, I try to use it in kde, it works fine, the i3wm not. I found the convert skin is missing the menu.png, but fcitx_skin.conf define BackImg=menu.png. Maybe it makes this bug. And then I copy classic skin menu picture to convert skin, the background shows up, but others is same with before.

whoisnian commented 5 years ago

In my i3wm with fcitx-configtool, this is what the skin menu look like without any manual modifications.
before After I changed the MarginTop, MarginBottom, MarginLeft and MarginRight in [SkinMenu] to 8, it becomes better.
after (There is no compositor in my i3wm. So the box isn't transparent.)

VOID001 commented 5 years ago

:octopus: I will followup recently (gugugu