TA的每日心情 | 慵懒 2023-10-14 18:34 |
---|
签到天数: 210 天 [LV.7]常住居民III
|
本帖最后由 deeke 于 2017-10-10 23:34 编辑
3 r( @0 e, ~7 h! E/ U8 x8 m/ q
: }4 Q4 J3 T2 Z# v171010:更换图例一。稍微减少 词典名称 与 分割线 的距离(代码区 Line 17. 18.)。3 i. B9 v+ ?' x8 j U8 \" M7 V
170928:更换图例一、二。修改一处 宽高比例(代码区 Line 30. ~ 33.)。, _( P7 u H" @8 r
------------------------------------------
5 |$ _ j3 j# X0 c" `1 Y0 B' t
z! n+ H* u0 I* X------------------------------------------3 Q; Y" d' |+ Z3 T% l9 y
我的软件环境是:Win8.1 + GoldenDict_Qt5_x64_portable 。6 z9 H* {' X, F9 V$ S6 P
( [: F) \" w3 {8 n' `7 ?! e
不给 mp3 加上 tag 就睡不着觉,不调整 GD 外观就不能查词典,这是“磨刀专误砍柴工”系列的第三集:! X8 C5 ?1 K/ D
使词典名称条更紧凑,在缩放页面时它几乎不会错位。, a& I( f7 L8 }# w
# D7 ~1 x: _" I3 z [3 J1. 选择风格:灵格斯。' |+ C& C! i! |, r. U% A/ l ], T1 M
2. 隐藏 词典名称的蓝色背景、词典图标。
) L( Q" G! i$ D* A1 g8 l3. 隐藏 右侧展开、折叠的箭头图片。' k K8 D9 c" F7 X3 X
4. 调整 尺寸、间距、边框、颜色。3 a# \+ j* Z4 N' {. l8 b& ?! h2 k
/ h- c) T5 T" ~0 n修改 GD 的配置文件:“ c:\...\GoldenDict\portable\article-style.css ” 。
4 v! d* u! b" ~0 o4 K% c1 {% |0 ?- /* 拉近 词典名称条 之间的距离。如果太近,就会重叠。 */
6 y: {- g8 l" g- u$ k+ H - .gdarticle { margin-top: .3rem; margin-bottom: 0; }- E5 `$ `3 {0 |# A9 S* X: ]
$ _! o; m/ ?+ V* y' g2 r- /* 隐藏 词典名称 外部容器的蓝色背景和边框 */
) e4 p) {8 E8 v$ G6 L c/ v - .gddictname {. ]% O/ U7 ^; {% A/ F& i9 }/ u4 @# }# p
- font-size: .625rem;
k. S# a7 [! u - margin: -.0625rem 0;
' W3 C2 }( I) F# S7 |3 W0 I - padding-left: 0;. t6 U4 a1 y; q: H; O* q
- vertical-align: bottom;. j* S( A, `! P! e e3 Z! B1 K) j
- border-width: 0;
3 J/ N) a7 C9 D6 Z* a) C+ A - background-color: transparent;# l1 T6 E' ?* d; x0 `1 p( }8 ~( i
- }
8 ]3 Q& C! g0 X/ L4 {8 R$ f D -
9 B. P/ E+ K" W0 W3 s: ^ - /* 加粗 词典名称 文字的下边框 */, n+ w$ S/ o# B& w N8 ~
- .gddicttitle {
1 c) a3 E7 Z( c; ^8 I - position: relative;: f! \! H2 {5 f; f/ \# U. t" l9 U! ^
- top: .01rem;
! Z( A; z9 @1 V6 m4 k4 I( R0 S - padding-bottom: .0625rem;) U2 f+ u' K2 H7 ^% i& G' O/ O6 a
- color: gray;
. e: P. j# B! N7 A - border-bottom: .23rem solid gray; J7 B+ f* a- t
- }/ ^( e& m, ]+ _$ _
& V. W% N/ f' A7 N# x- /* 隐藏 词典图标 和 “来自于……” */
$ i& |# q& v6 c! k7 ~ - .gddicticon,.gdfromprefix { display: none; }2 X3 z, m/ P# M- v9 l# ?3 a% j( J% e
- % Z) b4 l7 Y& O9 S% y/ f
- /* 隐藏 右侧箭头,调整尺寸、边框 */3 |! q3 I' C- ~- K
- .gdcollapseicon,.gdexpandicon {
+ K3 f) z# M: O8 b: S# ?( u - position: relative;, ~* [5 D; K; O' H
- top: .2745rem;8 E# S1 @. G1 y9 e
- /* w:h = 1:1 */" \, m! h/ o9 \) n) r% R4 {5 U
- width: .645rem;# _5 R+ C" q( m4 M" p
- /* w:h = 2:1 */
d+ f, q8 K2 k: X - /* width: 1.45rem; */
3 E: E1 Q' w2 @/ q) K' C: w" d) Y. x - height: .475rem;
8 c# }: [: s; q4 o - border: .08rem solid gray;; w, N* \0 w" I+ D- E8 b) t
- background-color: transparent;
8 @5 O- u9 P( E3 x- {: h S/ D - background-image: none;' P1 B/ {% |5 G0 P
- }
3 [8 i: D& }; \& A. R: a7 x0 R - / r; ^0 S4 A4 l+ n( ?
- /* 展开、鼠标悬停的展开、折叠、鼠标悬停的折叠,共四种样式 */
6 _0 P" Z5 V' b- b" r5 _0 D$ M - .gdexpandicon { background-color: gray; }
% i. @# l2 W. a - .gdexpandicon:hover { border-color: black; background-color: black; background-image: none; }
2 G: M$ U/ _) G9 P1 [' n - .gdcollapseicon { border-bottom-width: .25rem; }) P. _, j* l# Z' W
- .gdcollapseicon:hover { border-color: black; background-image: none; }
+ ^2 U6 Z1 Z6 N, ]
- b. T# W1 D; p% y+ ]- H- p$ R e- /* 分割线 */
" V. {4 B% m1 e& i$ Y- P/ }) V, ^ - .gddictnamebodyseparator { display: block; margin-bottom: -.0625rem; border-top: .08rem solid gray; }( f( B1 C d6 P) \3 |2 w: n8 P! o
8 a5 [( [' F/ p- /* 拉近 mdx 和 dsl 词典内容 与它们的 词典名称条 距离 */
9 J( E/ _0 x3 q- q - .mdict,.dsl_article { margin-top: .625rem; }
复制代码 + h( U% J. G: U# ]
------------------------------------------
6 v% a/ ]8 w9 g' i' l通过 qt-style.css 调整 软件界面文字大小
5 ?$ O) m4 l; a5 g3 Y0 o' P$ i9 \1 ^- b' w* U2 G( L
在我的机器上 20px 比较合适(注意 qt-style.css 中不要用单位 rem ,没有效果)。
# h, u8 k, Y) |3 x: ?
: \- n: |* a5 y( ]) f修改 GD 的配置文件:“ c:\...\GoldenDict\portable\qt-style.css ” 。
) w$ j; O% Q1 ~- QToolTip, /* 按钮或链接的提示信息 */& a. M6 |1 y3 M1 \9 L! y/ O
- ArticleView #searchText, /* 按 Ctrl+F 后的搜索框 */3 s" s, y; ?8 K% A5 b# r- S
- MainStatusBar #text, /* 右下角的提示信息 */6 V, \1 @, A5 e: X
- ScanPopup #translateLine, /* 弹出窗口的搜索框 */
6 ^: l: J. E# t l; C4 n - MainWindow #translateLine, /* 主窗口的搜索框 */& a) W& Z0 K0 Z: y3 H
- MainWindow #wordList, /* 搜索框下方的单词列表 */: k+ v5 ~5 N1 A, D' K$ O
- MainWindow #dictsPane #dictsList, /* 查到单词的词典列表 */) t- N; v0 L5 K! J/ X9 z
- MainWindow #historyPane #historyList, /* 历史面板的单词列表 */& x9 T9 O1 w; _
- MainWindow #favoritesPane #favoritesTree /* 收藏面板的单词列表 */
: ]) g$ c- I, }6 O6 H; A% Q/ {$ L - { font-size: 20px; }
复制代码 0 ~5 `4 a% T; \8 U4 C' d( I- N4 D0 V; i
------------------------------------------
6 q9 Z" L1 f; F* }6 V; P% J5 x9 C6 v; o. }: J7 u. g
------------------------------------------6 |. |, B8 x# Z8 K* O
# X8 W& `, i) O0 G1 r' v2 D最后再来个图,别忘了帮我评分呦~~~ |
评分
-
9
查看全部评分
-
|