195195
196196# // qt5ct
197197
198+ QT5_FONT=" ${QT5_FONT:- ${FONT} } "
199+ QT5_FONT_SIZE=" ${QT5_FONT_SIZE:- ${FONT_SIZE} } "
200+ QT5_MONOSPACE_FONT=" ${QT5_MONOSPACE_FONT:- ${MONOSPACE_FONT} } "
201+ QT5_MONOSPACE_FONT_SIZE=" ${QT5_MONOSPACE_FONT_SIZE:- ${MONOSPACE_FONT_SIZE:- 9} } "
202+
203+
198204toml_write " ${confDir} /qt5ct/qt5ct.conf" " Appearance" " icon_theme" " ${ICON_THEME} "
199- toml_write " ${confDir} /qt5ct/qt5ct.conf" " Fonts" " general" " \" ${FONT } ,${FONT_SIZE } ,-1,5,400,0,0,0,0,0,0,0,0,0,0,1,${FONT_STYLE} \" "
200- toml_write " ${confDir} /qt5ct/qt5ct.conf" " Fonts" " fixed" " \" ${MONOSPACE_FONT } ,${MONOSPACE_FONT_SIZE :- 9 } ,-1,5,400,0,0,0,0,0,0,0,0,0,0,1\" "
205+ toml_write " ${confDir} /qt5ct/qt5ct.conf" " Fonts" " general" " \" ${QT5_FONT } ,${QT5_FONT_SIZE } ,-1,5,400,0,0,0,0,0,0,0,0,0,0,1,${FONT_STYLE} \" "
206+ toml_write " ${confDir} /qt5ct/qt5ct.conf" " Fonts" " fixed" " \" ${QT5_MONOSPACE_FONT } ,${QT5_MONOSPACE_FONT_SIZE } ,-1,5,400,0,0,0,0,0,0,0,0,0,0,1\" "
201207
202208# toml_write "${confDir}/qt5ct/qt5ct.conf" "Appearance" "color_scheme_path" "${confDir}/qt5ct/colors/colors.conf"
203209# toml_write "${confDir}/qt5ct/qt5ct.conf" "Appearance" "custom_palette" "true"
204210
205211# // qt6ct
206212
213+ QT6_FONT=" ${QT6_FONT:- ${FONT} } "
214+ QT6_FONT_SIZE=" ${QT6_FONT_SIZE:- ${FONT_SIZE} } "
215+ QT6_MONOSPACE_FONT=" ${QT6_MONOSPACE_FONT:- ${MONOSPACE_FONT} } "
216+ QT6_MONOSPACE_FONT_SIZE=" ${QT6_MONOSPACE_FONT_SIZE:- ${MONOSPACE_FONT_SIZE:- 9} } "
217+
207218toml_write " ${confDir} /qt6ct/qt6ct.conf" " Appearance" " icon_theme" " ${ICON_THEME} "
208- toml_write " ${confDir} /qt6ct/qt6ct.conf" " Fonts" " general" " \" ${FONT } ,${FONT_SIZE } ,-1,5,400,0,0,0,0,0,0,0,0,0,0,1,${FONT_STYLE} \" "
209- toml_write " ${confDir} /qt6ct/qt6ct.conf" " Fonts" " fixed" " \" ${MONOSPACE_FONT } ,${MONOSPACE_FONT_SIZE :- 9} ,-1,5,400,0,0,0,0,0,0,0,0,0,0,1\" "
219+ toml_write " ${confDir} /qt6ct/qt6ct.conf" " Fonts" " general" " \" ${QT6_FONT } ,${QT6_FONT_SIZE } ,-1,5,400,0,0,0,0,0,0,0,0,0,0,1,${FONT_STYLE} \" "
220+ toml_write " ${confDir} /qt6ct/qt6ct.conf" " Fonts" " fixed" " \" ${QT6_MONOSPACE_FONT } ,${QT6_MONOSPACE_FONT_SIZE :- 9} ,-1,5,400,0,0,0,0,0,0,0,0,0,0,1\" "
210221# toml_write "${confDir}/qt6ct/qt6ct.conf" "Appearance" "color_scheme_path" "${confDir}/qt6ct/colors/colors.conf"
211222# toml_write "${confDir}/qt6ct/qt6ct.conf" "Appearance" "custom_palette" "true"
212223
@@ -233,11 +244,14 @@ sed -i -e "/^gtk-theme-name=/c\gtk-theme-name=\"${GTK_THEME}\"" \
233244
234245# // gtk3
235246
247+ GTK3_FONT=" ${GTK3_FONT:- ${FONT} } "
248+ GTK3_FONT_SIZE=" ${GTK3_FONT_SIZE:- ${FONT_SIZE} } "
249+
236250toml_write " ${confDir} /gtk-3.0/settings.ini" " Settings" " gtk-theme-name" " ${GTK_THEME} "
237251toml_write " ${confDir} /gtk-3.0/settings.ini" " Settings" " gtk-icon-theme-name" " ${ICON_THEME} "
238252toml_write " ${confDir} /gtk-3.0/settings.ini" " Settings" " gtk-cursor-theme-name" " ${CURSOR_THEME} "
239253toml_write " ${confDir} /gtk-3.0/settings.ini" " Settings" " gtk-cursor-theme-size" " ${CURSOR_SIZE} "
240- toml_write " ${confDir} /gtk-3.0/settings.ini" " Settings" " gtk-font-name" " ${FONT } ${FONT_SIZE } "
254+ toml_write " ${confDir} /gtk-3.0/settings.ini" " Settings" " gtk-font-name" " ${GTK3_FONT } ${GTK3_FONT_SIZE } "
241255
242256# // gtk4
243257if [ -d " ${themesDir} /${GTK_THEME} /gtk-4.0" ]; then
0 commit comments