diff options
Diffstat (limited to 'rofi/udt/ssh.rasi')
| -rw-r--r-- | rofi/udt/ssh.rasi | 52 |
1 files changed, 45 insertions, 7 deletions
diff --git a/rofi/udt/ssh.rasi b/rofi/udt/ssh.rasi index 4c8a88e..c40ac05 100644 --- a/rofi/udt/ssh.rasi +++ b/rofi/udt/ssh.rasi @@ -14,19 +14,56 @@ window { width: 1100px; anchor: center; location: center; - padding: 20px; + padding: 0; } -/* The prompt is lifted out of the inputbar to sit above it as a header. */ mainbox { - children: [ prompt, inputbar, listview ]; - spacing: 16px; + children: [ header, listview ]; + spacing: 0; } +/* The wallpaper banner, as in launcher.rasi: the header and the search bar + * share it. @WPAPER@ is rewritten by the installer, which is why this file + * is generated rather than linked. */ +header { + expand: false; + orientation: vertical; + children: [ headrow, inputbar ]; + spacing: 12px; + padding: 2.5em 2em; + background-image: url("@WPAPER@", width); + background-color: @mantle; +} + +/* The prompt is lifted out of the inputbar to sit above it, and kept to its + * own width by the spacer so its plate does not span the banner. */ +headrow { + expand: false; + orientation: horizontal; + children: [ prompt, dummy ]; +} + +dummy { + expand: true; +} + +/* Both sit on plates so they stay legible over any wallpaper. */ prompt { - font: "Noto Sans Bold 15"; - text-color: @text; - padding: 0 4px; + font: "Noto Sans Bold 15"; + text-color: @text; + background-color: @base; + border-radius: 6px; + padding: 6px 12px; +} + +inputbar { + background-color: @base; + border: 1px; + border-color: @accent; +} + +entry { + placeholder: "Search hosts, users, addresses"; } listview { @@ -35,6 +72,7 @@ listview { fixed-height: true; spacing: 12px; flow: horizontal; + padding: 20px; } /* Text only: the element spacing otherwise reserves a gap for the icon. */ |
