diff --git a/client/src/modules/extmodule.js b/client/src/modules/extmodule.js index c7c8937a..1c25a342 100644 --- a/client/src/modules/extmodule.js +++ b/client/src/modules/extmodule.js @@ -45,8 +45,10 @@ export default class ExtModule { get main() { return this.__pluginInternals.main } get defaultConfig() { return this.configs.defaultConfig } get userConfig() { return this.configs.userConfig } - get id() { return this.info.id || this.info.name.toLowerCase().replace(/[^a-zA-Z0-9-]/g, '-').replace(/--/g, '-') } + get configSchemes() { return this.configs.schemes } + get id() { return this.info.id || this.name.toLowerCase().replace(/[^a-zA-Z0-9-]/g, '-').replace(/--/g, '-') } get name() { return this.info.name } + get description() { return this.info.description } get authors() { return this.info.authors } get version() { return this.info.version } get contentPath() { return this.paths.contentPath } diff --git a/client/src/modules/plugin.js b/client/src/modules/plugin.js index 1ae51846..9b3e039a 100644 --- a/client/src/modules/plugin.js +++ b/client/src/modules/plugin.js @@ -55,6 +55,7 @@ export default class Plugin { get configSchemes() { return this.configs.schemes } get id() { return this.info.id || this.name.toLowerCase().replace(/[^a-zA-Z0-9-]/g, '-').replace(/--/g, '-') } get name() { return this.info.name } + get description() { return this.info.description } get authors() { return this.info.authors } get version() { return this.info.version } get contentPath() { return this.paths.contentPath } diff --git a/client/src/modules/theme.js b/client/src/modules/theme.js index 1f2d8021..87266100 100644 --- a/client/src/modules/theme.js +++ b/client/src/modules/theme.js @@ -55,6 +55,7 @@ export default class Theme { get configSchemes() { return this.configs.schemes } get id() { return this.info.id || this.name.toLowerCase().replace(/[^a-zA-Z0-9-]/g, '-').replace(/\s+/g, '-') } get name() { return this.info.name } + get description() { return this.info.description } get authors() { return this.info.authors } get version() { return this.info.version } get contentPath() { return this.paths.contentPath } diff --git a/client/src/modules/thememanager.js b/client/src/modules/thememanager.js index 599ba83b..33955207 100644 --- a/client/src/modules/thememanager.js +++ b/client/src/modules/thememanager.js @@ -152,7 +152,8 @@ export default class ThemeManager extends ContentManager { } if (type === 'dropdown' || type === 'radio') { - return [name, setting.options.find(opt => opt.id === value).value]; + const option = setting.options.find(opt => opt.id === value); + return [name, option ? option.value : value]; } if (typeof value === 'boolean' || typeof value === 'number') { diff --git a/client/src/styles/partials/bdsettings/button.scss b/client/src/styles/partials/bdsettings/button.scss index df81d933..5cb54504 100644 --- a/client/src/styles/partials/bdsettings/button.scss +++ b/client/src/styles/partials/bdsettings/button.scss @@ -49,7 +49,6 @@ background: transparent; opacity: 1; box-shadow: none; - z-index: 3001; .bd-settings-button-btn { background-image: $logoBigBw; @@ -62,6 +61,11 @@ cursor: default; } } + + &.bd-active, + &.bd-animating { + z-index: 3001; + } } @keyframes bd-settings-button-pulse { diff --git a/client/src/styles/partials/bdsettings/sidebarview.scss b/client/src/styles/partials/bdsettings/sidebarview.scss index 05512f8c..0e7f175c 100644 --- a/client/src/styles/partials/bdsettings/sidebarview.scss +++ b/client/src/styles/partials/bdsettings/sidebarview.scss @@ -119,14 +119,33 @@ .platform-linux & { top: 0; } -} -.bd-settings .bd-sidebar-view.bd-stop .bd-content-region { - z-index: 3003; -} + .bd-sidebar-view.bd-stop .bd-content-region { + z-index: 3003; + } -.bd-backdrop { - z-index: 3003; + .bd-sidebar-view.active { + .bd-content-region { + transition: transform 0.4s ease-in-out, opacity 0.2s ease; + transform: none; + opacity: 1; + } + } + + &:not(.active) .bd-sidebar-view.active, + &.bd-settings-out .bd-sidebar-view.active { + .bd-content-region { + transform: translate(-600px, 0%); + opacity: 0; + width: 590px; + } + } + + &:not(.active) .bd-sidebar-view.active { + .bd-content-region { + transform: translate(-600px, 100%); + } + } } .bd-sidebar .bd-settings-button { diff --git a/client/src/styles/partials/sidebarview/main.scss b/client/src/styles/partials/sidebarview/main.scss index 59ddec14..15e0a437 100644 --- a/client/src/styles/partials/sidebarview/main.scss +++ b/client/src/styles/partials/sidebarview/main.scss @@ -31,6 +31,7 @@ background: #36393e; box-shadow: 0 0 4px #202225; backface-visibility: hidden; + transition: transform 0.6s ease; } &.bd-stop { @@ -38,10 +39,4 @@ transform: none; } } - - &.active { - .bd-content-region { - animation: bd-slidein .6s; - } - } } diff --git a/client/src/styles/partials/sidebarview/sidebar.scss b/client/src/styles/partials/sidebarview/sidebar.scss index c61c149a..6d1ee455 100644 --- a/client/src/styles/partials/sidebarview/sidebar.scss +++ b/client/src/styles/partials/sidebarview/sidebar.scss @@ -41,10 +41,11 @@ &:hover, &.active { background: $colbdblue; + color: #fff; } &.active { - color: #fff; + cursor: default; } } } diff --git a/client/src/ui/components/BdSettings.vue b/client/src/ui/components/BdSettings.vue index 11a1d5fb..a342b1f4 100644 --- a/client/src/ui/components/BdSettings.vue +++ b/client/src/ui/components/BdSettings.vue @@ -9,8 +9,8 @@ */