5151< & /Elements/Tabs &>
5252< & /Elements/ListActions, actions => \@results &>
5353
54- < div class ="row ">
54+ < div class ="row mt-3 ">
5555
5656 < div id ="simple-customize " class ="col-6 ">
5757 < div id ="upload-logo ">
5858 < h3 > Logo</ h3 >
59- < & /Elements/Logo, id => 'logo-theme-editor', ShowName => 0 &>
60-
59+ < div class ="border border-secondary-subtle rounded ">
60+ < & /Elements/Logo, id => 'logo-theme-editor', ShowName => 0 &>
61+ </ div >
6162 < form method ="POST " enctype ="multipart/form-data " action ="">
6263 < div class ="row mt-2 ">
6364 < div class ="col-auto ">
@@ -72,10 +73,43 @@ <h3>Logo</h3>
7273 < &|/l&> GD is disabled or not installed. You can upload an image, but you won't get automatic color suggestions.</ &>
7374% }
7475 </ div >
75- < input class ="button btn btn-primary " name ="reset_logo " value ="<&|/l&>Reset to default RT Logo</&> " type ="submit " />
76- < input class ="button btn btn-primary " type ="submit " value ="<&|/l&>Upload</&> " />
76+ < input class ="button btn btn-primary mt-1 " name ="reset_logo " value ="<&|/l&>Reset to default RT Logo</&> " type ="submit " />
77+ < input class ="button btn btn-primary mt-1 " type ="submit " value ="<&|/l&>Upload</&> " />
7778 </ form >
7879 </ div >
80+
81+ < hr />
82+
83+ < div id ="customize-theme " class ="">
84+ < h3 > < &|/l&> Customize the RT theme</ &> </ h3 >
85+ < &| /Elements/LabeledValue, Label => loc('Select a section') &>
86+ < select class ="form-select selectpicker " id ="section " name ="section ">
87+ % for my $section ( @sections ) {
88+ < option value ="<% $section->[0] %> "> < % $section-> [0] %> </ option >
89+ % };
90+ </ select >
91+ </ &>
92+
93+ < &| /Elements/LabeledValue, Label => loc('Select a color for the section') &>
94+ < div class ="row ">
95+ % if ($colors) {
96+ < div class ="col button btn btn-primary primary-colors ">
97+ % for (@$colors) {
98+ % my $fg = $_-> {l} > = $text_threshold ? 'black' : 'white';
99+ < button type ="button " class ="button btn btn-primary color-template form-control "
100+ style ="background-color: rgb(<% $_->{c} %>); color: <% $fg %>; ">
101+ < &|/l&> Text</ &>
102+ </ button >
103+ % }
104+ </ div >
105+ % }
106+ < div class ="col ">
107+ < input type ="color " class ="form-control " id ="color-picker " />
108+ </ div >
109+ </ div >
110+ </ &>
111+ </ div >
112+
79113 </ div >
80114
81115 < div id ="custom-css " class ="col-6 ">
@@ -94,35 +128,7 @@ <h3><&|/l&>Custom CSS (Advanced)</&></h3>
94128< br >
95129
96130< div class ="row ">
97- < div id ="customize-theme " class ="col-6 ">
98- < h3 > < &|/l&> Customize the RT theme</ &> </ h3 >
99- < &| /Elements/LabeledValue, Label => loc('Select a section') &>
100- < select class ="form-select selectpicker " id ="section " name ="section ">
101- % for my $section ( @sections ) {
102- < option value ="<% $section->[0] %> "> < % $section-> [0] %> </ option >
103- % };
104- </ select >
105- </ &>
106131
107- < &| /Elements/LabeledValue, Label => loc('Select a color for the section') &>
108- < div class ="row ">
109- % if ($colors) {
110- < div class ="col button btn btn-primary primary-colors ">
111- % for (@$colors) {
112- % my $fg = $_-> {l} > = $text_threshold ? 'black' : 'white';
113- < button type ="button " class ="button btn btn-primary color-template form-control "
114- style ="background-color: rgb(<% $_->{c} %>); color: <% $fg %>; ">
115- < &|/l&> Text</ &>
116- </ button >
117- % }
118- </ div >
119- % }
120- < div class ="col ">
121- < input type ="color " class ="form-control " id ="color-picker " />
122- </ div >
123- </ div >
124- </ &>
125- </ div >
126132</ div >
127133
128134< %ONCE>
0 commit comments