diff options
| author | Danilo M. <danix@danix.xyz> | 2026-09-11 09:28:22 +0200 |
|---|---|---|
| committer | Danilo M. <danix@danix.xyz> | 2026-09-11 09:28:22 +0200 |
| commit | 0ebe57c2d77f4c2ba697746c6af2f3a702eb6570 (patch) | |
| tree | 0968b02f7938b9c8b3febe3e6a21069508f2cba3 /rofi/udt/common.rasi | |
| parent | 2ee3b2f7fa6ab225ebbd5a8826d8cf5022c90a33 (diff) | |
| download | unified-desktop-theme-0ebe57c2d77f4c2ba697746c6af2f3a702eb6570.tar.gz unified-desktop-theme-0ebe57c2d77f4c2ba697746c6af2f3a702eb6570.zip | |
feat: add shared rofi styling common to all udt layouts
Holds the identity every layout inherits: Noto Sans for UI text, Inconsolata
Nerd Font Mono for monospace (both matching the existing Qt and GTK settings),
one border radius, and one selected-element treatment of accent background with
base-colored text.
accent.rasi is committed as a mauve placeholder so the imports resolve before
any wallpaper has been processed. On install it is replaced by a symlink to the
generated file.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01G6aeE37K4GHBsaM51yLTTq
Diffstat (limited to 'rofi/udt/common.rasi')
| -rw-r--r-- | rofi/udt/common.rasi | 115 |
1 files changed, 115 insertions, 0 deletions
diff --git a/rofi/udt/common.rasi b/rofi/udt/common.rasi new file mode 100644 index 0000000..327e5a9 --- /dev/null +++ b/rofi/udt/common.rasi @@ -0,0 +1,115 @@ +/* + * Shared identity for all udt rofi layouts. + * Copyright (C) 2026 Danilo M. <danix@danix.xyz> + * Licensed under the GNU General Public License v2 only. + */ + +@import "palette.rasi" +@import "accent.rasi" + +* { + font: "Noto Sans 11"; + monospace-font: "Inconsolata Nerd Font Mono 11"; + + background-color: transparent; + text-color: @text; + + margin: 0; + padding: 0; + spacing: 0; + + radius: 10px; + bar-height: 36px; +} + +window { + background-color: @base; + border: 2px; + border-color: @accent; + border-radius: @radius; + padding: 16px; +} + +mainbox { + spacing: 12px; +} + +inputbar { + background-color: @surface0; + border-radius: 6px; + padding: 10px 12px; + spacing: 8px; + children: [ prompt, entry ]; +} + +prompt { + text-color: @accent; +} + +entry { + placeholder: "search"; + placeholder-color: @overlay0; + cursor: text; +} + +listview { + scrollbar: false; + cycle: true; + dynamic: true; + spacing: 4px; +} + +element { + border-radius: 6px; + padding: 8px 10px; + spacing: 10px; + cursor: pointer; +} + +element normal.normal { text-color: @text; } +element alternate.normal{ text-color: @text; } +element normal.urgent { text-color: @red; } +element normal.active { text-color: @accent; } + +element selected.normal { + background-color: @accent; + text-color: @base; +} + +element selected.urgent { + background-color: @red; + text-color: @base; +} + +element selected.active { + background-color: @accent; + text-color: @base; +} + +element-icon { + size: 1.2em; + vertical-align: 0.5; + background-color: transparent; +} + +element-text { + vertical-align: 0.5; + background-color: transparent; + text-color: inherit; +} + +message { + background-color: @surface0; + border-radius: 6px; + padding: 10px; +} + +textbox { + text-color: @text; +} + +error-message { + background-color: @base; + text-color: @red; + padding: 12px; +} |
