小狼毫輸入法皮膚加陰影
???? 2023年6月6日,小狼毫輸入法更新到 0.15.0 版。這個新版支持候選窗加陰影,好久不折騰輸入法的我,又搞了一下!
? ? ?
????皮膚名稱: "冷漠 / Apathy"
????作者: "LIANG Hai "
參攷這個皮膚,在綫網(wǎng)頁「潤筆?-?Rime設(shè)置小助手」那裡微調(diào)一下,在【小狼毫】更新日誌裡內(nèi)容找到陰影相關(guān)代碼。
????不加陰影的樣子,設(shè)置候選窗邊框?qū)挾葼?wèi) 2
? ????style/layout/border_width: 2



加上陰影的樣子


weasel.custom.yaml
----------------------------------------------------------------
customization:
? distribution_code_name: Weasel
? distribution_version: 0.15.0.0
? generator: "Weasel::UIStyleSettings"
? modified_time: "Wed Aug? 9 01:45:38 2023"
? rime_version: 1.8.5
patch:
? style/color_scheme: Bluewhite
? style/layout/border_width: 0
? style/layout/min_width: 120
? style/layout/corner_radius: 8 # 候選框外窗口圓角半徑
? style/layout/shadow_radius: 10 #全局陰影模糊半徑,如果為0則全局禁用陰影
? style/layout/shadow_offset_x: 3 # 陰影x偏置,正向右負(fù)向左
? style/layout/shadow_offset_y: 3 # 陰影y偏置,如果x,y都是0,而shadow_radius不為0,則四周繪制陰影;否則drowshadow陰影
??
? preset_color_schemes:
? ? Bluewhite:
? ? ? name: 藍(lán)白色/Bluewhite
? ? ? author: 偶得
? ? ? text_color: 6908274
? ? ? back_color: 16777215
? ? ? border_color: 15592943
? ? ? label_color: 6647406
? ? ? hilited_text_color: 12549671
? ? ? hilited_back_color: 15128762
? ? ? candidate_text_color: 0
? ? ? comment_text_color: 11316396
? ? ? hilited_candidate_text_color: 14512933
? ? ? hilited_comment_text_color: 9870235
? ? ? hilited_candidate_back_color: 16773338
? ? ? hilited_label_color: 14653283
? ? ??
? ? ? shadow_color: 0x4ccdcdcd #陰影顏色
------------------------------------------------------------
有些候選窗元素放在輸入法設(shè)置文本裡,隨便給出代碼,要掛鄭碼的可以參攷一下。
zishu.schema.yaml
--------------------------------------------
# zishu schema
# encoding:utf-8
schema:
? schema_id: zishu
? name: 正碼
? version: "1.0"
? author:
? ? - 繁體鄭碼
? description: |
? ? - “偶得” 調(diào)整簡碼部分
? dependencies:
? ? - pinyin_simp
switches:
? - name: ascii_code
? ? reset: 0
? ? states: [ 中文, 西文 ]
? - name: full_shape
? ? states: [ 半角, 全角 ]
? - name: ascii_punct
? ? states: ["句讀", "符號"]
? - name: simplification
? ? states: [ 漢字, 漢字 ]
? - name: extended_charset
? ? states: [ 通用, 增廣 ]
? ??
engine:
? processors:
? ? - ascii_composer
? ? - recognizer
? ? - key_binder
? ? - speller
? ? - punctuator
? ? - selector
? ? - navigator
? ? - express_editor
? segmentors:
? ? - ascii_segmentor
? ? - matcher
? ? - abc_segmentor
? ? - punct_segmentor
? ? - fallback_segmentor
? translators:
? ? - punct_translator
? ? - reverse_lookup_translator
? ? - table_translator
? filters:
? ? - reverse_lookup_filter@zishu_reverse
? ??
speller:
? alphabet: zyxwvutsrqponmlkjihgfedcba`
? delimiter: "`"
? max_code_length: 4
## ▲最大碼長?
? auto_select: true
## ▲自動上屏?
? auto_clear: auto
#? ▲manual/auto/max_length 空碼按下一鍵確認(rèn)清屏/空碼自動清/達到最長碼時后碼頂上清屏
? ??
translator:
? dictionary: zishu
? enable_charset_filter: true
? enable_sentence: false #關(guān)閉碼表輸入法連打
? enable_encoder: false
? encode_commit_history: false
? enable_completion: true
? enable_user_dict: false #關(guān)閉用戶詞典和字頻調(diào)整
? comment_format:
? ? - 'xlit/~/ /' #去掉編碼提示前的波浪號~
??
reverse_lookup:
? dictionary: luna_pinyin
? prefix: "`"
? suffix: "'"
? tips: 〔拼音〕
? preedit_format:
? ? - xform/([nl])v/$1ü/
? ? - xform/([nl])ue/$1üe/
? ? - xform/([jqxy])v/$1u/
zishu_reverse:
? dictionary: zishu?
? overwrite_comment: false
? comment_format:
? ? - xform/^/? [/
? ? - xform/$/]/
punctuator:
? import_preset: default
? full_shape:
? ? "/" : "、"
? half_shape:
? ? "/" : "、"
key_binder:
? import_preset: default
? bindings:
? ? - {when: has_menu, accept: space, send: space}
? ? - {when: composing, accept: Return, send: Escape}
? ? - { when: has_menu, accept: semicolon, send: 2 }
? ? - { when: has_menu, accept: apostrophe, send: 3 }
# ▲應(yīng)用以回車清除編碼串, “;”選二重,“‘”選三重?
recognizer:
? import_preset: default
? patterns:
? ? reverse_lookup: "^`[a-z]*'?$"
? ??
menu:
? page_size: 3
? alternative_select_labels: [ ①, ②, ③, ④, ⑤, ⑥, ⑦, ⑧, ⑨ ]? # 修改候選標(biāo)籤
style:
? font_point: 13
? horizontal: true #橫排顯示
? line_spacing: 1 #行距
? inline_preedit: true # 嵌入式候選窗單行顯示
? label_format: '%s' #去掉候選詞和序號之間的點號
--------------------------------------------------------------------------