Skip to content

Commit

Permalink
Properties instead of colors for theme options in install generator
Browse files Browse the repository at this point in the history
Also include default properties for dark variant.

REDMINE-20845, REDMINE-19604
  • Loading branch information
tf committed Nov 26, 2024
1 parent df96d3d commit 4bbd540
Showing 1 changed file with 26 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,32 @@ class ScrolledThemesPlugin
widget: '"Source Sans Pro", sans-serif'
},
custom_theme_icons: <%= @custom_theme_icons %>,
colors: {
accent: '#e10028',
widget: {
surface: '#fff',
on_surface: '#000',
primary: '#00375a',
on_primary: '#fff',
secondary: '#c2c2c2',
on_seconday: '#000',
background: 'rgba(255, 255, 255, 0.95)',
on_background: '#000'
properties: {
root: {
accent_color: '#e10028',
widget_surface_color: '#fff',
widget_on_surface_color: '#000',
widget_primary_color: '#00375a',
widget_on_primary_color: '#fff',
widget_secondary_color: '#c2c2c2',
widget_on_seconday_color: '#000',
widget_background_color: 'rgb(255 255 255 / .95)',
widget_on_background_color: '#000',
},

dark: {
accent_color: '#ff8097',
widget_surface_color: '#000',
widget_surface_backdrop_blur: '5px',
widget_surface_opacity: '70%',
widget_on_surface_color: '#eee',
widget_primary_color: '#fff',
widget_on_primary_color: '#000',
widget_background_color: 'rgb(0 0 0 / .65)',
widget_background_backdrop_blur: '5px',
widget_on_background_color: '#eee',
default_navigation_separator_color: 'rgb(255 255 255 / .1)',
default_navigation_progress_bar_background_color: 'rgb(0 0 0 / .5)',
}
},
logo_alt_text: 'Pageflow',
Expand Down

0 comments on commit 4bbd540

Please sign in to comment.