]> git.mxchange.org Git - friendica.git/commitdiff
[frio] Add more color accents
authorHypolite Petovan <hypolite@mrpetovan.com>
Thu, 20 Aug 2020 02:58:21 +0000 (22:58 -0400)
committerHypolite Petovan <hypolite@mrpetovan.com>
Thu, 20 Aug 2020 03:12:52 +0000 (23:12 -0400)
view/theme/frio/templates/theme_settings.tpl
view/theme/frio/theme.php

index 564f90fde612004df653e77a26396236d34b3ffe..505aa55c228bf34448716a685336d31e93893d8a 100644 (file)
                <span style="border-radius: 10px; background-color: {{$smarty.const.FRIO_SCHEME_ACCENT_BLUE}}; width: 20px; display: inline-block">&nbsp;</span>
                {{$scheme_accent.3.blue}}
        </label>
+       <label class="radio-inline">
+               <input type="radio" name="{{$scheme_accent.0}}" value="{{$smarty.const.FRIO_SCHEME_ACCENT_RED}}" {{if $scheme_accent.2 == $smarty.const.FRIO_SCHEME_ACCENT_RED}} checked{{/if}}>
+               <span style="border-radius: 10px; background-color: {{$smarty.const.FRIO_SCHEME_ACCENT_RED}}; width: 20px; display: inline-block">&nbsp;</span>
+               {{$scheme_accent.3.red}}
+       </label>
+       <label class="radio-inline">
+               <input type="radio" name="{{$scheme_accent.0}}" value="{{$smarty.const.FRIO_SCHEME_ACCENT_PURPLE}}" {{if $scheme_accent.2 == $smarty.const.FRIO_SCHEME_ACCENT_PURPLE}} checked{{/if}}>
+               <span style="border-radius: 10px; background-color: {{$smarty.const.FRIO_SCHEME_ACCENT_PURPLE}}; width: 20px; display: inline-block">&nbsp;</span>
+               {{$scheme_accent.3.purple}}
+       </label>
+       <label class="radio-inline">
+               <input type="radio" name="{{$scheme_accent.0}}" value="{{$smarty.const.FRIO_SCHEME_ACCENT_GREEN}}" {{if $scheme_accent.2 == $smarty.const.FRIO_SCHEME_ACCENT_GREEN}} checked{{/if}}>
+               <span style="border-radius: 10px; background-color: {{$smarty.const.FRIO_SCHEME_ACCENT_GREEN}}; width: 20px; display: inline-block">&nbsp;</span>
+               {{$scheme_accent.3.green}}
+       </label>
+       <label class="radio-inline">
+               <input type="radio" name="{{$scheme_accent.0}}" value="{{$smarty.const.FRIO_SCHEME_ACCENT_PINK}}" {{if $scheme_accent.2 == $smarty.const.FRIO_SCHEME_ACCENT_PINK}} checked{{/if}}>
+               <span style="border-radius: 10px; background-color: {{$smarty.const.FRIO_SCHEME_ACCENT_PINK}}; width: 20px; display: inline-block">&nbsp;</span>
+               {{$scheme_accent.3.pink}}
+       </label>
 </div>
 {{/if}}
 
index 8c40dadd814a332396ba0618fbf00598363d80a4..4c37e42e734518a7c5d1f6e251edf2bfdda4f1f7 100644 (file)
@@ -22,6 +22,11 @@ use Friendica\Module;
 use Friendica\Util\Strings;
 
 const FRIO_SCHEME_ACCENT_BLUE   = '#1e87c2';
+const FRIO_SCHEME_ACCENT_RED    = '#b50404';
+const FRIO_SCHEME_ACCENT_PURPLE = '#a54bad';
+const FRIO_SCHEME_ACCENT_GREEN  = '#218f39';
+const FRIO_SCHEME_ACCENT_PINK   = '#d900a9';
+
 function frio_init(App $a)
 {
        global $frio;