From 0ebe57c2d77f4c2ba697746c6af2f3a702eb6570 Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Fri, 11 Sep 2026 09:28:22 +0200 Subject: 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 Claude-Session: https://claude.ai/code/session_01G6aeE37K4GHBsaM51yLTTq --- rofi/udt/accent.rasi | 2 + rofi/udt/common.rasi | 115 +++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 117 insertions(+) create mode 100644 rofi/udt/accent.rasi create mode 100644 rofi/udt/common.rasi (limited to 'rofi/udt') diff --git a/rofi/udt/accent.rasi b/rofi/udt/accent.rasi new file mode 100644 index 0000000..ca60f47 --- /dev/null +++ b/rofi/udt/accent.rasi @@ -0,0 +1,2 @@ +/* Generated by udt-accent. Do not edit. */ +* { accent: #c6a0f6ff; } 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. + * 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; +} -- cgit v1.2.3