Add styling for tear line
This commit is contained in:
@@ -306,4 +306,40 @@ var rules = []dataTheme.Rule {
|
||||
dataTheme.AttrColor { Color: tomo.ColorAccent },
|
||||
),
|
||||
},
|
||||
|
||||
// *.TearLine[*]
|
||||
dataTheme.Rule {
|
||||
Role: tomo.R("", "TearLine", ""),
|
||||
Default: dataTheme.AS (
|
||||
dataTheme.AttrBorder {
|
||||
tomo.Border {
|
||||
Width: tomo.I(3),
|
||||
Color: [4]color.Color {
|
||||
color.Transparent,
|
||||
color.Transparent,
|
||||
color.Transparent,
|
||||
color.Transparent,
|
||||
},
|
||||
},
|
||||
},
|
||||
dataTheme.AttrColor { Color: tomo.ColorForeground },
|
||||
dataTheme.AttrPadding(tomo.I(1, 0, 0, 1)),
|
||||
),
|
||||
Hovered: dataTheme.AS (
|
||||
dataTheme.AttrBorder {
|
||||
tomo.Border {
|
||||
Width: tomo.I(3),
|
||||
Color: borderColorFocused,
|
||||
},
|
||||
},
|
||||
),
|
||||
Focused: dataTheme.AS (
|
||||
dataTheme.AttrBorder {
|
||||
tomo.Border {
|
||||
Width: tomo.I(3),
|
||||
Color: borderColorFocused,
|
||||
},
|
||||
},
|
||||
),
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user