Made shadows togglable with default set to false. (#786)
This commit is contained in:
@@ -53,6 +53,7 @@ export const BarSettings = (): JSX.Element => {
|
|||||||
enums={['none', 'full', 'top', 'right', 'bottom', 'left', 'horizontal', 'vertical']}
|
enums={['none', 'full', 'top', 'right', 'bottom', 'left', 'horizontal', 'vertical']}
|
||||||
/>
|
/>
|
||||||
<Option opt={options.theme.bar.border.width} title="Bar Border Width" type="string" />
|
<Option opt={options.theme.bar.border.width} title="Bar Border Width" type="string" />
|
||||||
|
<Option opt={options.theme.bar.enableShadow} title="Enable Shadow" type="boolean" />
|
||||||
<Option
|
<Option
|
||||||
opt={options.theme.bar.shadow}
|
opt={options.theme.bar.shadow}
|
||||||
title="Bar Shadow"
|
title="Bar Shadow"
|
||||||
|
|||||||
@@ -65,6 +65,7 @@ export const BarGeneral = (): JSX.Element => {
|
|||||||
max={10000}
|
max={10000}
|
||||||
increment={25}
|
increment={25}
|
||||||
/>
|
/>
|
||||||
|
<Option opt={options.theme.bar.menus.enableShadow} title="Enable Shadow" type="boolean" />
|
||||||
<Option
|
<Option
|
||||||
opt={options.theme.bar.menus.shadow}
|
opt={options.theme.bar.menus.shadow}
|
||||||
title="Menu Shadow"
|
title="Menu Shadow"
|
||||||
|
|||||||
@@ -22,6 +22,7 @@ export const NotificationSettings = (): JSX.Element => {
|
|||||||
enums={['top left', 'top', 'top right', 'right', 'bottom right', 'bottom', 'bottom left', 'left']}
|
enums={['top left', 'top', 'top right', 'right', 'bottom right', 'bottom', 'bottom left', 'left']}
|
||||||
/>
|
/>
|
||||||
<Option opt={options.theme.notification.border_radius} title="Border Radius" type="string" />
|
<Option opt={options.theme.notification.border_radius} title="Border Radius" type="string" />
|
||||||
|
<Option opt={options.theme.notification.enableShadow} title="Enable Shadow" type="boolean" />
|
||||||
<Option
|
<Option
|
||||||
opt={options.theme.notification.shadow}
|
opt={options.theme.notification.shadow}
|
||||||
title="Notification Shadow"
|
title="Notification Shadow"
|
||||||
|
|||||||
@@ -49,6 +49,7 @@ export const OSDSettings = (): JSX.Element => {
|
|||||||
type="string"
|
type="string"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
|
<Option opt={options.theme.osd.enableShadow} title="Enable Shadow" type="boolean" />
|
||||||
<Option
|
<Option
|
||||||
opt={options.theme.osd.shadow}
|
opt={options.theme.osd.shadow}
|
||||||
title="OSD Shadow"
|
title="OSD Shadow"
|
||||||
|
|||||||
@@ -120,6 +120,7 @@ const options = mkOptions(CONFIG, {
|
|||||||
label: opt(colors.lavender),
|
label: opt(colors.lavender),
|
||||||
border: opt(secondary_colors.surface0),
|
border: opt(secondary_colors.surface0),
|
||||||
border_radius: opt('0.6em'),
|
border_radius: opt('0.6em'),
|
||||||
|
enableShadow: opt(false),
|
||||||
shadow: opt('0px 1px 2px 1px #16161e'),
|
shadow: opt('0px 1px 2px 1px #16161e'),
|
||||||
shadowMargins: opt('4px 4px'),
|
shadowMargins: opt('4px 4px'),
|
||||||
time: opt(secondary_colors.overlay1),
|
time: opt(secondary_colors.overlay1),
|
||||||
@@ -151,6 +152,7 @@ const options = mkOptions(CONFIG, {
|
|||||||
active_monitor: opt(true),
|
active_monitor: opt(true),
|
||||||
radius: opt('0.4em'),
|
radius: opt('0.4em'),
|
||||||
margins: opt('7px 7px 7px 7px'),
|
margins: opt('7px 7px 7px 7px'),
|
||||||
|
enableShadow: opt(false),
|
||||||
shadow: opt('0px 0px 3px 2px #16161e'),
|
shadow: opt('0px 0px 3px 2px #16161e'),
|
||||||
location: opt<OSDAnchor>('right'),
|
location: opt<OSDAnchor>('right'),
|
||||||
muted_zero: opt(false),
|
muted_zero: opt(false),
|
||||||
@@ -162,6 +164,7 @@ const options = mkOptions(CONFIG, {
|
|||||||
layer: opt<WindowLayer>('top'),
|
layer: opt<WindowLayer>('top'),
|
||||||
margin_top: opt('0.5em'),
|
margin_top: opt('0.5em'),
|
||||||
opacity: opt(100),
|
opacity: opt(100),
|
||||||
|
enableShadow: opt(false),
|
||||||
shadow: opt('0px 1px 2px 1px #16161e'),
|
shadow: opt('0px 1px 2px 1px #16161e'),
|
||||||
shadowMargins: opt('0px 0px 4px 0px'),
|
shadowMargins: opt('0px 0px 4px 0px'),
|
||||||
margin_bottom: opt('0em'),
|
margin_bottom: opt('0em'),
|
||||||
@@ -436,6 +439,7 @@ const options = mkOptions(CONFIG, {
|
|||||||
radius: opt('0.7em'),
|
radius: opt('0.7em'),
|
||||||
color: opt(colors.surface0),
|
color: opt(colors.surface0),
|
||||||
},
|
},
|
||||||
|
enableShadow: opt(false),
|
||||||
shadow: opt('0px 0px 3px 1px #16161e'),
|
shadow: opt('0px 0px 3px 1px #16161e'),
|
||||||
shadowMargins: opt('5px 5px'),
|
shadowMargins: opt('5px 5px'),
|
||||||
text: opt(colors.text),
|
text: opt(colors.text),
|
||||||
|
|||||||
@@ -16,8 +16,8 @@
|
|||||||
background: if($bar-transparent, transparent, transparentize($bar-background, $transparency-value));
|
background: if($bar-transparent, transparent, transparentize($bar-background, $transparency-value));
|
||||||
border-radius: if($bar-floating, $bar-border_radius, 0em);
|
border-radius: if($bar-floating, $bar-border_radius, 0em);
|
||||||
|
|
||||||
margin: $bar-shadowMargins;
|
margin: if($bar-enableShadow, $bar-shadowMargins, 0px);
|
||||||
box-shadow: $bar-shadow;
|
box-shadow: if($bar-enableShadow, $bar-shadow, 0 0 0 0);
|
||||||
|
|
||||||
&.withBorder {
|
&.withBorder {
|
||||||
border-top: if(
|
border-top: if(
|
||||||
|
|||||||
@@ -228,8 +228,8 @@
|
|||||||
|
|
||||||
.dropdown-content {
|
.dropdown-content {
|
||||||
border-radius: $bar-menus-border-radius;
|
border-radius: $bar-menus-border-radius;
|
||||||
margin: $bar-menus-shadowMargins;
|
margin: if($bar-menus-enableShadow, $bar-menus-shadowMargins, 0px);
|
||||||
box-shadow: $bar-menus-shadow;
|
box-shadow: if($bar-menus-enableShadow, $bar-menus-shadow, 0 0 0 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
.menu-label {
|
.menu-label {
|
||||||
|
|||||||
@@ -7,8 +7,8 @@
|
|||||||
min-height: 4em;
|
min-height: 4em;
|
||||||
border-radius: $notification-border_radius;
|
border-radius: $notification-border_radius;
|
||||||
opacity: $notification-opacity * 0.01;
|
opacity: $notification-opacity * 0.01;
|
||||||
margin: $notification-shadowMargins;
|
margin: if($notification-enableShadow, $notification-shadowMargins, 0px);
|
||||||
box-shadow: $notification-shadow;
|
box-shadow: if($notification-enableShadow, $notification-shadow, 0 0 0 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
.notification-card-container {
|
.notification-card-container {
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
.osd-container {
|
.osd-container {
|
||||||
margin: $osd-margins;
|
margin: $osd-margins;
|
||||||
opacity: $osd-opacity * 0.01;
|
opacity: $osd-opacity * 0.01;
|
||||||
box-shadow: $osd-shadow;
|
box-shadow: if($osd-enableShadow, $osd-shadow, 0 0 0 0);
|
||||||
border-radius: $osd-radius;
|
border-radius: $osd-radius;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user