mirror of
https://github.com/niri-wm/niri.git
synced 2026-06-24 02:01:18 +07:00
Move default_border() into FocusRing
This commit is contained in:
@@ -281,7 +281,7 @@ pub struct Mode {
|
|||||||
pub struct Layout {
|
pub struct Layout {
|
||||||
#[knuffel(child, default)]
|
#[knuffel(child, default)]
|
||||||
pub focus_ring: FocusRing,
|
pub focus_ring: FocusRing,
|
||||||
#[knuffel(child, default = default_border())]
|
#[knuffel(child, default = FocusRing::default_border())]
|
||||||
pub border: FocusRing,
|
pub border: FocusRing,
|
||||||
#[knuffel(child, unwrap(children), default)]
|
#[knuffel(child, unwrap(children), default)]
|
||||||
pub preset_column_widths: Vec<PresetWidth>,
|
pub preset_column_widths: Vec<PresetWidth>,
|
||||||
@@ -324,12 +324,14 @@ impl Default for FocusRing {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
pub const fn default_border() -> FocusRing {
|
impl FocusRing {
|
||||||
FocusRing {
|
pub const fn default_border() -> FocusRing {
|
||||||
off: true,
|
FocusRing {
|
||||||
width: 4,
|
off: true,
|
||||||
active_color: Color::new(255, 200, 127, 255),
|
width: 4,
|
||||||
inactive_color: Color::new(80, 80, 80, 255),
|
active_color: Color::new(255, 200, 127, 255),
|
||||||
|
inactive_color: Color::new(80, 80, 80, 255),
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -168,7 +168,7 @@ impl Default for Options {
|
|||||||
gaps: 16,
|
gaps: 16,
|
||||||
struts: Default::default(),
|
struts: Default::default(),
|
||||||
focus_ring: Default::default(),
|
focus_ring: Default::default(),
|
||||||
border: niri_config::default_border(),
|
border: niri_config::FocusRing::default_border(),
|
||||||
center_focused_column: Default::default(),
|
center_focused_column: Default::default(),
|
||||||
preset_widths: vec![
|
preset_widths: vec![
|
||||||
ColumnWidth::Proportion(1. / 3.),
|
ColumnWidth::Proportion(1. / 3.),
|
||||||
|
|||||||
Reference in New Issue
Block a user