forked from Shinonome/dots-hyprland
sidebar: config option for expanding calendar by default (#1070)
This commit is contained in:
@@ -117,7 +117,10 @@ let configOptions = {
|
|||||||
},
|
},
|
||||||
'quickToggles': {
|
'quickToggles': {
|
||||||
'order': ["wifi", "bluetooth", "nightlight", "gamemode", "idleinhibitor", "cloudflarewarp"],
|
'order': ["wifi", "bluetooth", "nightlight", "gamemode", "idleinhibitor", "cloudflarewarp"],
|
||||||
}
|
},
|
||||||
|
'calendar': {
|
||||||
|
'expandByDefault': true,
|
||||||
|
},
|
||||||
},
|
},
|
||||||
'search': {
|
'search': {
|
||||||
'enableFeatures': {
|
'enableFeatures': {
|
||||||
|
|||||||
@@ -259,7 +259,7 @@ export const ModuleCalendar = () => {
|
|||||||
transition: 'slide_up_down',
|
transition: 'slide_up_down',
|
||||||
transitionDuration: userOptions.animations.durationLarge,
|
transitionDuration: userOptions.animations.durationLarge,
|
||||||
setup: (stack) => Utils.timeout(1, () => {
|
setup: (stack) => Utils.timeout(1, () => {
|
||||||
stack.shown = 'expanded';
|
stack.shown = userOptions.sidebar.calendar.expandByDefault ? 'expanded' : 'collapsed';
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user