Skip to content

Commit

Permalink
theme random colour
Browse files Browse the repository at this point in the history
  • Loading branch information
zombieFox committed Jun 23, 2024
1 parent c58c439 commit f8d9b9f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
7 changes: 3 additions & 4 deletions src/component/control/checkbox/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,9 @@ export const Control_checkbox = function ({
labelText = 'Label',
description = false,
action = false,
//FIXME deprecated properties
inputButton = false, //eslint-disable-line
inputHide = false, //eslint-disable-line
inputButtonStyle = false //eslint-disable-line
inputButton = false,
inputHide = false,
inputButtonStyle = false
} = {}) {

this.checkbox = form.input.checkbox({
Expand Down
3 changes: 1 addition & 2 deletions src/component/control/color/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@ export const Control_color = function ({
id = 'name',
labelText = 'Label',
srOnly = false,
//FIXME deprecated property
value = '#000000', //eslint-disable-line
value = '#000000',
defaultValue = false,
action = false,
randomColor = false,
Expand Down
3 changes: 3 additions & 0 deletions src/component/menuContent/themeSetting/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -1782,6 +1782,7 @@ themeSetting.layout = (parent) => {
labelText: message.get('menuContentThemeLayoutColorColor'),
defaultValue: state.get.default().theme.layout.color.rgb,
minMaxObject: state.get.minMax(),
randomColor: true,
action: () => {
applyCSSVar([
'theme.layout.color.rgb.r',
Expand Down Expand Up @@ -1919,6 +1920,7 @@ themeSetting.header = (parent) => {
labelText: message.get('menuContentThemeHeaderColorColor'),
defaultValue: state.get.default().theme.header.color.rgb,
minMaxObject: state.get.minMax(),
randomColor: true,
action: () => {
applyCSSVar([
'theme.header.color.rgb.r',
Expand Down Expand Up @@ -2008,6 +2010,7 @@ themeSetting.bookmark = (parent) => {
labelText: message.get('menuContentThemeBookmarkColorColor'),
defaultValue: state.get.default().theme.bookmark.color.rgb,
minMaxObject: state.get.minMax(),
randomColor: true,
action: () => {
applyCSSVar([
'theme.bookmark.color.rgb.r',
Expand Down

0 comments on commit f8d9b9f

Please sign in to comment.