colours
This commit is contained in:
+7
-7
@@ -33,16 +33,16 @@ The pick goes to stdout and nothing does if you cancel, so exit status is
|
|||||||
config:
|
config:
|
||||||
|
|
||||||
Flat `key = value` lines, `#` comments, everything optional; a flag beats
|
Flat `key = value` lines, `#` comments, everything optional; a flag beats
|
||||||
the file. Sizes take sway's units - `600px` is absolute, `70ppt` is a
|
the file. Sizes take sway's units — `600px` is absolute, `70ppt` is a
|
||||||
percentage of the display the grid appears on, so one file suits monitors
|
percentage of the display the grid appears on, so one file suits monitors
|
||||||
of different sizes.
|
of different sizes.
|
||||||
|
|
||||||
background = #282828 # the grid's backdrop
|
background = #222222 # the grid's backdrop
|
||||||
foreground = #ebdbb2 # label text
|
foreground = #888888 # label text
|
||||||
selection = #d79921 # the highlighted tile
|
selection = #285577 # the highlighted tile
|
||||||
selection-text = #282828 # its label
|
selection-text = #ffffff # its label
|
||||||
border = #d79921
|
border = #4c7899
|
||||||
border-width = 2px
|
border-width = 2px
|
||||||
|
|
||||||
max-width = 90ppt # the box the grid may fill
|
max-width = 90ppt # the box the grid may fill
|
||||||
max-height = 90ppt
|
max-height = 90ppt
|
||||||
|
|||||||
+9
-8
@@ -1,8 +1,9 @@
|
|||||||
//! Look and layout.
|
//! Look and layout.
|
||||||
//!
|
//!
|
||||||
//! The colours and spacing come from the rofi setup this replaces (mytheme.rasi
|
//! The colours and spacing come from sway's default client colours:
|
||||||
//! plus the -theme-str rofigrid built): gruvbox dark, a yellow selection filling
|
//! unfocused background `#222222` and text `#888888` for the grid
|
||||||
//! the element padding, `title · app` centred under each thumbnail.
|
//! backdrop and labels, focused `#285577`/`#ffffff` for the selection,
|
||||||
|
//! and focused border `#4c7899`.
|
||||||
//!
|
//!
|
||||||
//! Sizing works from caps rather than from a thumbnail size. The config gives a
|
//! Sizing works from caps rather than from a thumbnail size. The config gives a
|
||||||
//! box the grid may fill and a column and row limit; a thumbnail is that box
|
//! box the grid may fill and a column and row limit; a thumbnail is that box
|
||||||
@@ -53,11 +54,11 @@ pub struct Theme {
|
|||||||
impl Default for Theme {
|
impl Default for Theme {
|
||||||
fn default() -> Self {
|
fn default() -> Self {
|
||||||
Self {
|
Self {
|
||||||
bg: 0xff282828, // gruvbox-dark-bg0
|
bg: 0xff222222, // sway unfocused background
|
||||||
fg: 0xffebdbb2, // gruvbox-dark-fg1
|
fg: 0xff888888, // sway unfocused text
|
||||||
sel_bg: 0xffd79921, // gruvbox-dark-yellow-dark
|
sel_bg: 0xff285577, // sway focused background
|
||||||
sel_fg: 0xff282828,
|
sel_fg: 0xffffffff, // sway focused text
|
||||||
border: 0xffd79921,
|
border: 0xff4c7899, // sway focused border
|
||||||
border_px: 2,
|
border_px: 2,
|
||||||
// No cap of their own: Layout clamps to the display, and the
|
// No cap of their own: Layout clamps to the display, and the
|
||||||
// command line resolves the configured percentage over the top.
|
// command line resolves the configured percentage over the top.
|
||||||
|
|||||||
Reference in New Issue
Block a user