TA的每日心情 | 慵懒 2025-1-28 16:22 |
|---|
签到天数: 216 天 [LV.7]常住居民III
|
本帖最后由 deeke 于 2017-10-10 23:34 编辑 ' x! p: _$ N; C% a
6 J( r& l" I) @: L& o9 e171010:更换图例一。稍微减少 词典名称 与 分割线 的距离(代码区 Line 17. 18.)。
9 Y* t% P4 e3 _4 K/ r: x170928:更换图例一、二。修改一处 宽高比例(代码区 Line 30. ~ 33.)。9 ?0 ~# f7 _6 Z' M/ B3 x9 E
------------------------------------------2 [& ^7 \! M9 c) d6 s

9 x- O, X% L, G------------------------------------------& t. m j* k. _# V7 }: a
我的软件环境是:Win8.1 + GoldenDict_Qt5_x64_portable 。" ?' w9 ?4 [, C
0 f# l1 }0 S4 t/ K
不给 mp3 加上 tag 就睡不着觉,不调整 GD 外观就不能查词典,这是“磨刀专误砍柴工”系列的第三集:( e. u( X) B! U8 B
使词典名称条更紧凑,在缩放页面时它几乎不会错位。
( z. v1 a; z% A D' |4 P% d# Y5 n. X3 N7 L# D( C- `
1. 选择风格:灵格斯。0 |, \* Y( H# q( ^. Z
2. 隐藏 词典名称的蓝色背景、词典图标。
A6 v# b- {2 ?3. 隐藏 右侧展开、折叠的箭头图片。
$ j/ V! W3 O3 V" o0 s0 r* ]& j4. 调整 尺寸、间距、边框、颜色。
, O/ m: t d* @: P/ a) E% ~7 d F7 |6 T
修改 GD 的配置文件:“ c:\...\GoldenDict\portable\article-style.css ” 。% t; S: O1 O! V
- /* 拉近 词典名称条 之间的距离。如果太近,就会重叠。 */, z* N9 [! @3 I) f H, i
- .gdarticle { margin-top: .3rem; margin-bottom: 0; }
8 k9 Y+ t4 a2 n5 o( E8 N* t - ) x5 Z& _ @ `
- /* 隐藏 词典名称 外部容器的蓝色背景和边框 */
" R) E$ X# v& n1 u7 | - .gddictname {
) x6 b$ Z9 i" |. S4 T$ e - font-size: .625rem;
9 |! |7 Q" A) p3 e# T - margin: -.0625rem 0;3 O# E {% V" V, S9 ~
- padding-left: 0;6 e$ {1 g' L$ C6 g+ h
- vertical-align: bottom;2 v& p: Q; M, R- W0 Z
- border-width: 0;0 `! U9 g7 i# o5 N( \' \; t
- background-color: transparent;
: \1 n- d/ u j; p3 O8 X - }
* X& i& i8 f% { -
4 _6 s7 l3 d8 V3 v3 K - /* 加粗 词典名称 文字的下边框 */: W* N$ c# c3 K) s6 I* b+ }- h: Z
- .gddicttitle {3 K' @; n/ b3 y8 W" m! Z+ h* Q
- position: relative;
# d9 d0 S, ^- S - top: .01rem;& Z+ I3 A; N' f1 n1 j$ o# d: s
- padding-bottom: .0625rem;
3 `) I, S+ j) h; p - color: gray;/ a! i, y3 b" C3 U/ X" j
- border-bottom: .23rem solid gray;
& ~' h/ |9 q% @& s5 L# x - }2 d( o. U6 U) l9 p& Z
- 9 l- R) N0 y/ c+ g4 V0 C0 G
- /* 隐藏 词典图标 和 “来自于……” */
/ m+ e5 l4 m0 ]7 w9 i - .gddicticon,.gdfromprefix { display: none; }
: k; ^9 F, s( M. Y K - 2 d6 @; h0 Z6 v9 [( h
- /* 隐藏 右侧箭头,调整尺寸、边框 */) J/ ^0 d) N; V0 R% f- @
- .gdcollapseicon,.gdexpandicon {
' D6 b. q8 B6 c7 R- R - position: relative;, w" ?% n6 U0 ]5 { G! O
- top: .2745rem;2 c, u2 g/ s% d7 q: U$ f
- /* w:h = 1:1 */
8 h& G" O: \. r5 A - width: .645rem;3 g+ U% k" E5 h, r, d& ~" U
- /* w:h = 2:1 */
- r4 U% q* v2 g' `/ [ - /* width: 1.45rem; */
! e8 f3 A7 |, u0 x$ e) a - height: .475rem;3 B, @% ~. a$ L
- border: .08rem solid gray;
- n) O9 F1 [! k3 O3 O$ ]* E2 D - background-color: transparent;
% T- R: y5 \0 q, X6 `- \ - background-image: none;
. B5 j! x0 ]5 B( p6 x% L0 Q - }8 N' u% [) w. F- K
$ W4 J# \; K" T2 I: e( R- /* 展开、鼠标悬停的展开、折叠、鼠标悬停的折叠,共四种样式 */) u+ e5 M; x( A+ s3 j5 l, H
- .gdexpandicon { background-color: gray; }0 p& _/ T) O3 ~( J7 \
- .gdexpandicon:hover { border-color: black; background-color: black; background-image: none; }- d# D3 [1 n! W
- .gdcollapseicon { border-bottom-width: .25rem; }; c( e( p9 ~0 i9 Z; x9 z+ Y
- .gdcollapseicon:hover { border-color: black; background-image: none; }# _2 l1 i4 [6 n* q) q
- 1 Q" r- D+ S9 l/ E, B: u2 K
- /* 分割线 */- ~) r, @5 Z) B
- .gddictnamebodyseparator { display: block; margin-bottom: -.0625rem; border-top: .08rem solid gray; }3 S* {6 m$ n& @% I
- 0 y! v- C3 V% p3 i% [! e
- /* 拉近 mdx 和 dsl 词典内容 与它们的 词典名称条 距离 */
" ^8 ?0 b& E D* Q! K9 g' Z0 H - .mdict,.dsl_article { margin-top: .625rem; }
复制代码 b$ G6 n, H! A* `
------------------------------------------$ ~: @. _$ e1 g
通过 qt-style.css 调整 软件界面文字大小
# {7 C2 o/ ~' w. F2 y3 w
Q+ F9 _# q! o% ]1 E' ]3 g在我的机器上 20px 比较合适(注意 qt-style.css 中不要用单位 rem ,没有效果)。
: k/ _ |/ f) @& Y% v# m* M2 r. F- ]: ]) M- A: w
修改 GD 的配置文件:“ c:\...\GoldenDict\portable\qt-style.css ” 。% ?: U4 e6 o$ T6 V1 f) K1 K
- QToolTip, /* 按钮或链接的提示信息 */
" H0 w6 X3 ~& \2 N+ m d$ ]. a+ F - ArticleView #searchText, /* 按 Ctrl+F 后的搜索框 */3 X( |3 _7 c% S- a- z. k% _/ E# n
- MainStatusBar #text, /* 右下角的提示信息 */$ n6 k9 e8 \# ?" r0 z
- ScanPopup #translateLine, /* 弹出窗口的搜索框 */
1 f; B$ C- O6 l9 ?1 n5 p6 ]0 B - MainWindow #translateLine, /* 主窗口的搜索框 */
% B* I8 `4 L- E/ ]4 s& f) u - MainWindow #wordList, /* 搜索框下方的单词列表 */
$ `$ o" ^: N; U7 b m0 x - MainWindow #dictsPane #dictsList, /* 查到单词的词典列表 */
4 z9 j, v2 c5 h' z& V, g6 F. d - MainWindow #historyPane #historyList, /* 历史面板的单词列表 */
2 P& h& |) _) b8 c. N! m, y - MainWindow #favoritesPane #favoritesTree /* 收藏面板的单词列表 */4 g0 z- B4 G0 @, E
- { font-size: 20px; }
复制代码
2 c8 j. Y8 D4 n9 X------------------------------------------, E6 z9 G# R O4 W- Y- f0 b

; D: I. f. k; [# r------------------------------------------1 @# b1 J5 d' z, j& f2 F( E
$ A# s: J% z' e最后再来个图,别忘了帮我评分呦~~~ |
评分
-
9
查看全部评分
-
|