aboutsummaryrefslogtreecommitdiffstats
path: root/rofi
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-10-29 09:55:20 +0100
committerDanilo M. <danix@danix.xyz>2026-10-29 09:55:20 +0100
commit55d00cc44fcb3ae89d3ad27a236fa30f167d80a2 (patch)
tree1fda9fee45faa0545dd1a5c56b41c406d9a0d6f2 /rofi
parent78d7d285a980513101210188ab3da8a4c3b512e8 (diff)
downloadunified-desktop-theme-55d00cc44fcb3ae89d3ad27a236fa30f167d80a2.tar.gz
unified-desktop-theme-55d00cc44fcb3ae89d3ad27a236fa30f167d80a2.zip
fonts: sizes belong to the keystone fonts page
The Qt and GTK templates no longer carry font sizes, so a re-install no longer resets what the keystone settings window (Appearance > Fonts) sets. Every rofi font is now var(kf-<file>-<selector>, "Family N"): the fallback is the designed size, and ~/.config/keystone/rofi-fonts.rasi, imported by common.rasi when present, overrides it. rofi tolerates the import being absent, so the designed sizes still apply without it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'rofi')
-rw-r--r--rofi/udt/common.rasi8
-rw-r--r--rofi/udt/confirm.rasi2
-rw-r--r--rofi/udt/grid.rasi2
-rw-r--r--rofi/udt/header.rasi2
-rw-r--r--rofi/udt/launcher.rasi6
-rw-r--r--rofi/udt/powermenu.rasi6
-rw-r--r--rofi/udt/screenshot.rasi4
-rw-r--r--rofi/udt/ssh.rasi2
8 files changed, 18 insertions, 14 deletions
diff --git a/rofi/udt/common.rasi b/rofi/udt/common.rasi
index 0b9526b..140596e 100644
--- a/rofi/udt/common.rasi
+++ b/rofi/udt/common.rasi
@@ -6,10 +6,14 @@
@import "palette.rasi"
@import "accent.rasi"
+// Font sizes from the keystone settings window (Appearance > Fonts): each
+// font below is var(kf-..., "designed"), and this file, when present, sets
+// them. Absent, the designed sizes apply.
+@import "~/.config/keystone/rofi-fonts.rasi"
* {
- font: "Noto Sans 11";
- monospace-font: "Inconsolata Nerd Font Mono 11";
+ font: var(kf-common-font, "Noto Sans 11");
+ monospace-font: var(kf-common-mono, "Inconsolata Nerd Font Mono 11");
background-color: transparent;
text-color: @text;
diff --git a/rofi/udt/confirm.rasi b/rofi/udt/confirm.rasi
index 242c86a..3308927 100644
--- a/rofi/udt/confirm.rasi
+++ b/rofi/udt/confirm.rasi
@@ -21,7 +21,7 @@ message {
}
textbox {
- font: "Noto Sans Bold 18";
+ font: var(kf-confirm-textbox, "Noto Sans Bold 18");
text-color: @text;
horizontal-align: 0.5;
}
diff --git a/rofi/udt/grid.rasi b/rofi/udt/grid.rasi
index 931aae7..b385181 100644
--- a/rofi/udt/grid.rasi
+++ b/rofi/udt/grid.rasi
@@ -49,7 +49,7 @@ element {
/* Left-aligned, not centred: each row is a glyph followed by its name, so it
* reads as a label rather than a lone symbol. */
element-text {
- font: "Noto Color Emoji 16";
+ font: var(kf-grid-element, "Noto Color Emoji 16");
horizontal-align: 0.0;
vertical-align: 0.5;
}
diff --git a/rofi/udt/header.rasi b/rofi/udt/header.rasi
index 921e104..b395b32 100644
--- a/rofi/udt/header.rasi
+++ b/rofi/udt/header.rasi
@@ -34,7 +34,7 @@ dummy {
/* Both sit on plates so they stay legible over any wallpaper. */
prompt {
- font: "Noto Sans Bold 15";
+ font: var(kf-header-prompt, "Noto Sans Bold 15");
text-color: @text;
background-color: @base;
border-radius: 6px;
diff --git a/rofi/udt/launcher.rasi b/rofi/udt/launcher.rasi
index 6bd2bc8..710c47b 100644
--- a/rofi/udt/launcher.rasi
+++ b/rofi/udt/launcher.rasi
@@ -45,7 +45,7 @@ inputbar {
}
entry {
- font: "Noto Sans 15";
+ font: var(kf-launcher-entry, "Noto Sans 15");
placeholder: "Search";
}
@@ -60,7 +60,7 @@ button {
border-radius: 10px;
background-color: @surface0;
text-color: @subtext0;
- font: "Noto Sans Bold 11";
+ font: var(kf-launcher-button, "Noto Sans Bold 11");
horizontal-align: 0.5;
cursor: pointer;
}
@@ -93,6 +93,6 @@ element-icon {
}
element-text {
- font: "Noto Sans 11";
+ font: var(kf-launcher-element, "Noto Sans 11");
horizontal-align: 0.5;
}
diff --git a/rofi/udt/powermenu.rasi b/rofi/udt/powermenu.rasi
index ff7ba53..c057a4f 100644
--- a/rofi/udt/powermenu.rasi
+++ b/rofi/udt/powermenu.rasi
@@ -73,7 +73,7 @@ inputbar {
* spacers either side centre it. */
prompt {
expand: false;
- font: "Noto Sans Bold 28";
+ font: var(kf-powermenu-prompt, "Noto Sans Bold 28");
text-color: @text;
horizontal-align: 0.5;
}
@@ -107,7 +107,7 @@ element {
* (U+F0904), and heading the stack with it breaks the row rather than fixing
* it. Verified by screenshot, both ways. */
element-text {
- font: "Inconsolata Nerd Font Mono 42";
+ font: var(kf-powermenu-element, "Inconsolata Nerd Font Mono 42");
horizontal-align: 0.5;
vertical-align: 0.5;
text-color: inherit;
@@ -121,7 +121,7 @@ message {
}
textbox {
- font: "Noto Sans 12";
+ font: var(kf-powermenu-textbox, "Noto Sans 12");
text-color: @subtext0;
horizontal-align: 0.5;
}
diff --git a/rofi/udt/screenshot.rasi b/rofi/udt/screenshot.rasi
index f3f8c4f..76a7900 100644
--- a/rofi/udt/screenshot.rasi
+++ b/rofi/udt/screenshot.rasi
@@ -50,7 +50,7 @@ card {
/* The header, as in ssh.rasi: the prompt lifted out of the inputbar. */
prompt {
- font: "Noto Sans Bold 15";
+ font: var(kf-screenshot-prompt, "Noto Sans Bold 15");
text-color: @text;
padding: 0 4px;
}
@@ -80,7 +80,7 @@ element {
}
element-text {
- font: "Inconsolata Nerd Font Mono 72";
+ font: var(kf-screenshot-element, "Inconsolata Nerd Font Mono 72");
horizontal-align: 0.5;
vertical-align: 0.5;
text-color: inherit;
diff --git a/rofi/udt/ssh.rasi b/rofi/udt/ssh.rasi
index 52899f1..2049104 100644
--- a/rofi/udt/ssh.rasi
+++ b/rofi/udt/ssh.rasi
@@ -45,7 +45,7 @@ element {
}
element-text {
- font: "Noto Sans 13";
+ font: var(kf-ssh-element, "Noto Sans 13");
horizontal-align: 0.5;
vertical-align: 0.5;
}