Skip to content

Commit

Permalink
Merge pull request #2170 from raszpl/patch-7
Browse files Browse the repository at this point in the history
Update themes.js normalizing, removing redundant data
  • Loading branch information
ImprovedTube authored Apr 9, 2024
2 parents 8e41763 + d0dbdba commit 04a604b
Showing 1 changed file with 3 additions and 17 deletions.
20 changes: 3 additions & 17 deletions menu/skeleton-parts/themes.js
Original file line number Diff line number Diff line change
@@ -1,21 +1,13 @@
/*--------------------------------------------------------------
>>> THEMES
----------------------------------------------------------------
# Font
# Themes
--------------------------------------------------------------*/

extension.skeleton.main.layers.section.themes = {
component: 'button',
variant: 'themes',
category: true,
on: {
click: {
section: {
component: 'section',
variant: 'card'
}
}
click: {}
},

icon: {
Expand Down Expand Up @@ -46,7 +38,7 @@ extension.skeleton.main.layers.section.themes = {
};

/*--------------------------------------------------------------
# THEMES
# SECTION
--------------------------------------------------------------*/

extension.skeleton.main.layers.section.themes.on.click.section = {
Expand All @@ -57,12 +49,10 @@ extension.skeleton.main.layers.section.themes.on.click.section = {
component: 'label',
variant: 'custom-theme',
text: 'custom',

radio: {
component: 'radio',
group: 'theme',
value: 'custom',
checked: true,
on: {
click: {
section: {
Expand All @@ -87,7 +77,7 @@ extension.skeleton.main.layers.section.themes.on.click.section = {
default: {
component: 'label',
variant: 'default-theme',
text: 'default_theme',
text: 'default',
radio: {
component: 'radio',
group: 'theme',
Expand All @@ -99,7 +89,6 @@ extension.skeleton.main.layers.section.themes.on.click.section = {
component: 'label',
variant: 'black-theme',
text: 'black',

radio: {
component: 'radio',
group: 'theme',
Expand All @@ -110,7 +99,6 @@ extension.skeleton.main.layers.section.themes.on.click.section = {
component: 'label',
variant: 'plain-theme',
text: 'plain',

radio: {
component: 'radio',
group: 'theme',
Expand All @@ -131,7 +119,6 @@ extension.skeleton.main.layers.section.themes.on.click.section = {
component: 'label',
variant: 'night-theme',
text: 'night',

radio: {
component: 'radio',
group: 'theme',
Expand All @@ -142,7 +129,6 @@ extension.skeleton.main.layers.section.themes.on.click.section = {
component: 'label',
variant: 'dawn-theme',
text: 'dawn',

radio: {
component: 'radio',
group: 'theme',
Expand Down

0 comments on commit 04a604b

Please sign in to comment.