Skip to content

Commit

Permalink
Style: Add warp scss module
Browse files Browse the repository at this point in the history
  • Loading branch information
myamusashi committed Dec 23, 2024
1 parent dfb4c62 commit 5abb96e
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/options.ts
Original file line number Diff line number Diff line change
Expand Up @@ -398,10 +398,10 @@ const options = mkOptions(CONFIG, {
warp: {
enableBorder: opt(false),
border: opt(colors.yellow),
background: opt(colors.base),
background: opt(colors.base2),
text: opt(colors.yellow),
icon: opt(colors.yellow),
icon_background: opt(colors.base),
icon_background: opt(colors.base2),
spacing: opt('0.45em'),
}
},
Expand Down
22 changes: 22 additions & 0 deletions src/scss/style/bar/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -448,3 +448,25 @@
// custom font size
1.075em //
);

@include styleModule(
//
// class name
'warp',
// label color
$bar-buttons-modules-warp-text,
// icon color
$bar-buttons-modules-warp-icon,
// icon background if split style is used
$bar-buttons-modules-warp-icon_background,
// label background
$bar-buttons-modules-warp-background,
// inner spacing
$bar-buttons-modules-warp-spacing,
// if border enabled
$bar-buttons-modules-warp-enableBorder,
// border color
$bar-buttons-modules-warp-border,
// custom font size
1.075em //
);

0 comments on commit 5abb96e

Please sign in to comment.