summaryrefslogtreecommitdiff
path: root/src/caelestia/utils/theme.py
diff options
context:
space:
mode:
author2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-08-15 15:53:39 +1000
committer2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-08-15 15:53:39 +1000
commitd727836cc9effb716fc3de89d06123e05feb823b (patch)
tree2b53227c00202c83afd9d896a03e2fa2b09f1f79 /src/caelestia/utils/theme.py
parent[CI] chore: update flake (diff)
downloadcaelestia-cli-d727836cc9effb716fc3de89d06123e05feb823b.tar.gz
caelestia-cli-d727836cc9effb716fc3de89d06123e05feb823b.tar.bz2
caelestia-cli-d727836cc9effb716fc3de89d06123e05feb823b.zip
theme: better qt theming
Switch to Darkly for default QT style Use qt5ct-kde and qt6ct-kde
Diffstat (limited to 'src/caelestia/utils/theme.py')
-rw-r--r--src/caelestia/utils/theme.py19
1 files changed, 16 insertions, 3 deletions
diff --git a/src/caelestia/utils/theme.py b/src/caelestia/utils/theme.py
index ead3e29..b3261d8 100644
--- a/src/caelestia/utils/theme.py
+++ b/src/caelestia/utils/theme.py
@@ -159,15 +159,28 @@ def apply_gtk(colours: dict[str, str], mode: str) -> None:
def apply_qt(colours: dict[str, str], mode: str) -> None:
- template = gen_replace(colours, templates_dir / "qtcolors.conf", hash=True)
- write_file(config_dir / "qt5ct/colors/caelestia.conf", template)
- write_file(config_dir / "qt6ct/colors/caelestia.conf", template)
+ template = gen_replace(colours, templates_dir / f"qt{mode}.colors", hash=True)
+ write_file(config_dir / "qt5ct/colors/caelestia.colors", template)
+ write_file(config_dir / "qt6ct/colors/caelestia.colors", template)
qtct = (templates_dir / "qtct.conf").read_text()
qtct = qtct.replace("{{ $mode }}", mode.capitalize())
for ver in 5, 6:
conf = qtct.replace("{{ $config }}", str(config_dir / f"qt{ver}ct"))
+
+ if ver == 5:
+ conf += """
+[Fonts]
+fixed="Monospace,12,-1,5,50,0,0,0,0,0"
+general="Sans Serif,12,-1,5,50,0,0,0,0,0"
+"""
+ else:
+ conf += """
+[Fonts]
+fixed="Monospace,12,-1,5,400,0,0,0,0,0,0,0,0,0,0,1"
+general="Sans Serif,12,-1,5,400,0,0,0,0,0,0,0,0,0,0,1"
+"""
write_file(config_dir / f"qt{ver}ct/qt{ver}ct.conf", conf)