Skip to content

Commit

Permalink
Disable primary & secondary color theme controls when hot pink theme …
Browse files Browse the repository at this point in the history
…is enabled
  • Loading branch information
kommunarr committed Aug 28, 2023
1 parent 0018ddf commit a93a3e7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/renderer/components/theme-settings/theme-settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,11 @@ export default defineComponent({
return this.$t(`Settings.Theme Settings.Main Color Theme.${colorName}`)
})
},

areColorThemesEnabled: function() {
return this.baseTheme !== 'hotPink'
},

usingElectron: function () {
return process.env.IS_ELECTRON
}
Expand Down
2 changes: 2 additions & 0 deletions src/renderer/components/theme-settings/theme-settings.vue
Original file line number Diff line number Diff line change
Expand Up @@ -64,13 +64,15 @@
:value="mainColor"
:select-names="colorNames"
:select-values="colorValues"
:disabled="!areColorThemesEnabled"
@change="updateMainColor"
/>
<ft-select
:placeholder="$t('Settings.Theme Settings.Secondary Color Theme')"
:value="secColor"
:select-names="colorNames"
:select-values="colorValues"
:disabled="!areColorThemesEnabled"
@change="updateSecColor"
/>
</ft-flex-box>
Expand Down

0 comments on commit a93a3e7

Please sign in to comment.