File tree Expand file tree Collapse file tree 2 files changed +17
-0
lines changed
Expand file tree Collapse file tree 2 files changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -115,6 +115,8 @@ async function setup_palette_settings() {
115115 const svg = await load_colored_score_SVG ( score ) ;
116116 input . addEventListener ( "input" , ( ) => {
117117 update_svg_color ( score , input . value ) ;
118+ btn_save_palette_settings . style . display = "flex" ;
119+ btn_reset_palette_settings . style . display = "flex" ;
118120 } ) ;
119121
120122 cell . appendChild ( svg ) ;
@@ -1137,11 +1139,14 @@ btn_open_dialog_settings.addEventListener("click", () => {
11371139
11381140btn_reset_palette_settings . addEventListener ( "click" , ( ) => {
11391141 png_settings . colors = { ...png_default_settings . colors } ;
1142+ btn_save_palette_settings . style . display = "none" ;
1143+ btn_reset_palette_settings . style . display = "none" ;
11401144 close_dialog_settings ( ) ;
11411145} ) ;
11421146
11431147btn_save_palette_settings . addEventListener ( "click" , ( ) => {
11441148 close_dialog_settings ( save = true ) ;
1149+ btn_save_palette_settings . style . display = "none" ;
11451150 show_popup_message ( "Palette settings saved" , "success" , 3000 ) ;
11461151} ) ;
11471152
Original file line number Diff line number Diff line change 364364 }
365365}
366366
367+ # savePaletteSettings {
368+ display : none;
369+ }
370+
371+ # resetPaletteSettings {
372+ display : none;
373+ }
374+
367375
368376.filter-stats-display {
369377 display : none;
396404 }
397405 }
398406
407+ # paletteContainer {
408+ padding : 1rem ;
409+ }
410+
399411 .grid-charts {
400412 grid-template-columns : 1fr !important ;
401413 }
You can’t perform that action at this time.
0 commit comments