style: one sans and one mono, and no stretched text
GTK, Qt and Hyprland's own text move to the shell's pair: Noto Sans for interface text and JetBrainsMono Nerd Font for figures and code. They had been Adwaita Sans, Sans Serif and FiraCode. The tray menu now slides and fades in without scaling, and a pressed button sinks one pixel instead of shrinking, so no label is ever stretched mid-animation.
This commit is contained in:
1 parent
31b57f4f8c
commit
7b7cd3e575
7 files changed
+14
-20
No files matched your search
@@ -405,6 +405,10 @@ network and bluetooth, but keep running as the secret and pairing agents.
|
||||
Selection is the light slab with ink text; only destructive actions are red.
|
||||
The theme name is also in `xsettingsd/xsettingsd.conf` and has to be set with
|
||||
`gsettings` for portal-aware apps.
|
||||
- **Type** — one sans and one mono everywhere: Noto Sans for interface text
|
||||
and JetBrainsMono Nerd Font for figures and code, in the shell
|
||||
(`Theme.fontDisplay` / `fontMono`), GTK (`settings.ini` and the gsettings
|
||||
`font-name` / `monospace-font-name`), qt6ct and Hyprland's own text.
|
||||
- **Qt** — qt6ct with `qt6ct/colors/yorha.conf`, the same palette in
|
||||
`QPalette` roles, drawn with the Darkly style (package `darkly-bin`) for
|
||||
rounded controls. Fusion is the fallback if Darkly is missing.
|
||||
|
||||
@@ -142,8 +142,11 @@ FocusScope {
|
||||
}
|
||||
}
|
||||
|
||||
// A press sinks the button one whole pixel instead of shrinking it, so
|
||||
// its label stays on the pixel grid.
|
||||
transform: Translate {
|
||||
x: root.pressed ? 0 : (root.highlighted ? root.lunge : 0)
|
||||
y: root.pressed ? 1 : 0
|
||||
|
||||
Behavior on x {
|
||||
NumberAnimation {
|
||||
@@ -153,10 +156,6 @@ FocusScope {
|
||||
}
|
||||
}
|
||||
|
||||
scale: root.pressed ? 0.97 : 1.0
|
||||
Behavior on scale {
|
||||
NumberAnimation { duration: Theme.durFast; easing.type: Easing.OutExpo }
|
||||
}
|
||||
|
||||
HoverHandler {
|
||||
id: hover
|
||||
|
||||
@@ -79,7 +79,6 @@ PopupWindow {
|
||||
closeAnim.stop();
|
||||
shown = false;
|
||||
holder.opacity = 0;
|
||||
holder.scale = 0.94;
|
||||
holder.x = root.bleed;
|
||||
PopupCoordinator.release(root);
|
||||
}
|
||||
@@ -106,9 +105,9 @@ PopupWindow {
|
||||
width: root.contentWidth
|
||||
height: root.contentHeight
|
||||
|
||||
// It slides in from the tray and fades, and never scales: scaling
|
||||
// stretches the menu's text while it moves.
|
||||
opacity: 0
|
||||
scale: 0.94
|
||||
transformOrigin: Item.Right
|
||||
|
||||
PopoutSurface {
|
||||
anchors.fill: parent
|
||||
@@ -136,10 +135,6 @@ PopupWindow {
|
||||
target: holder; property: "opacity"
|
||||
to: 1.0; duration: Theme.durBase; easing.type: Easing.OutExpo
|
||||
}
|
||||
NumberAnimation {
|
||||
target: holder; property: "scale"
|
||||
to: 1.0; duration: Theme.durSlow; easing.type: Easing.OutCubic
|
||||
}
|
||||
NumberAnimation {
|
||||
target: holder; property: "x"
|
||||
from: root.bleed + 14; to: root.bleed
|
||||
@@ -153,10 +148,6 @@ PopupWindow {
|
||||
target: holder; property: "opacity"
|
||||
to: 0.0; duration: Theme.durFast; easing.type: Easing.InQuad
|
||||
}
|
||||
NumberAnimation {
|
||||
target: holder; property: "scale"
|
||||
to: 0.96; duration: Theme.durFast; easing.type: Easing.InQuad
|
||||
}
|
||||
onFinished: {
|
||||
root.shown = false;
|
||||
holder.x = root.bleed;
|
||||
|
||||
Reference in new issue
Block a user