mirror of
https://github.com/caelestia-dots/cli.git
synced 2026-06-05 14:59:29 -05:00
feat: switch to qtengine
This commit is contained in:
@@ -1,6 +0,0 @@
|
|||||||
[Appearance]
|
|
||||||
color_scheme_path={{ $config }}/colors/caelestia.colors
|
|
||||||
custom_palette=true
|
|
||||||
icon_theme=Papirus-{{ $mode }}
|
|
||||||
standard_dialogs=default
|
|
||||||
style=Darkly
|
|
||||||
@@ -0,0 +1,22 @@
|
|||||||
|
{
|
||||||
|
"theme": {
|
||||||
|
"colorScheme": "~/.config/qtengine/caelestia.colors",
|
||||||
|
"iconTheme": "Papirus-{{ $mode }}",
|
||||||
|
"style": "Darkly",
|
||||||
|
"font": {
|
||||||
|
"family": "Sans Serif",
|
||||||
|
"size": 12,
|
||||||
|
"weight": -1
|
||||||
|
},
|
||||||
|
"fontFixed": {
|
||||||
|
"family": "Monospace",
|
||||||
|
"size": 12,
|
||||||
|
"weight": -1
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"misc": {
|
||||||
|
"menusHaveIcons": true,
|
||||||
|
"singleClickActivate": false,
|
||||||
|
"shortcutsForContextMenus": true
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -320,29 +320,12 @@ def apply_gtk(colours: dict[str, str], mode: str) -> None:
|
|||||||
|
|
||||||
@log_exception
|
@log_exception
|
||||||
def apply_qt(colours: dict[str, str], mode: str) -> None:
|
def apply_qt(colours: dict[str, str], mode: str) -> None:
|
||||||
template = gen_replace(colours, templates_dir / f"qt{mode}.colors", hash=True)
|
colours = gen_replace(colours, templates_dir / f"qt{mode}.colors", hash=True)
|
||||||
write_file(config_dir / "qt5ct/colors/caelestia.colors", template)
|
write_file(config_dir / "qtengine/caelestia.colors", colours)
|
||||||
write_file(config_dir / "qt6ct/colors/caelestia.colors", template)
|
|
||||||
|
|
||||||
qtct = (templates_dir / "qtct.conf").read_text()
|
config = (templates_dir / "qtengine.json").read_text()
|
||||||
qtct = qtct.replace("{{ $mode }}", mode.capitalize())
|
config = config.replace("{{ $mode }}", mode.capitalize())
|
||||||
|
write_file(config_dir / "qtengine/config.json", config)
|
||||||
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)
|
|
||||||
|
|
||||||
|
|
||||||
@log_exception
|
@log_exception
|
||||||
|
|||||||
Reference in New Issue
Block a user