From 8c31b53e3339d3e34801df60366725d8b0436f79 Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Tue, 19 May 2026 14:58:50 -0700 Subject: [PATCH] rofi: tune apple frost list density --- dotfiles/config/rofi/apple-frost.rasi | 29 +++++++++++++++++++-------- 1 file changed, 21 insertions(+), 8 deletions(-) diff --git a/dotfiles/config/rofi/apple-frost.rasi b/dotfiles/config/rofi/apple-frost.rasi index fe6770ec..620edb46 100644 --- a/dotfiles/config/rofi/apple-frost.rasi +++ b/dotfiles/config/rofi/apple-frost.rasi @@ -15,6 +15,8 @@ configuration { backdrop: #0b102026; panel: #00000000; control: #ffffffe0; + candidate-soft: #0b102018; + candidate-frost: #ffffff12; candidate: #18203372; candidate-active:#2430489c; text: #111827ff; @@ -53,6 +55,7 @@ mainbox { inputbar { background-color: @control; text-color: @text; + height: 50px; children: [ prompt, entry ]; border: 1px; border-color: @hairline; @@ -80,11 +83,10 @@ entry { listview { background-color: @bg; columns: 1; - lines: 10; + lines: 17; spacing: 0px; - border: 1px; - border-color: @border; - border-radius: 14px; + border: 0px; + border-radius: 0px 0px 14px 14px; cycle: false; dynamic: true; layout: vertical; @@ -95,13 +97,24 @@ element { background-color: @bg; text-color: @text-on-dark; orientation: horizontal; - border: 0px 0px 1px 0px; - border-color: @hairline; + border: 0px; border-radius: 0px; - padding: 11px 11px; + /* + * Rofi percentages are monitor-relative. Derive padding from: + * 78% - 176px mainbox padding - 50px inputbar - 10px spacing - 2px border. + */ + padding: calc( ( 78% - 238px ) / 34 - 12px ) 11px calc( ( 78% - 238px ) / 34 - 13px ) 11px; spacing: 10px; } +element normal { + background-color: @candidate-soft; +} + +element alternate { + background-color: @candidate-frost; +} + element-icon { background-color: @bg; text-color: inherit; @@ -119,7 +132,7 @@ element-text { element selected { background-color: @candidate; text-color: @text-on-dark; - border-color: @border; + border: 0px; } element selected element-text {