Re: Request: Theme config item type ="colorpicker"??
Posted: Thu Mar 03, 2016 6:59 pm
I know there are mixed feelings on whether or not this is a useful theme option. I have not decided that issue either, but I am happy we are exploring the possibility.
Yes, if we are going to have something like this, there needs to be a way select "none"... which could quite possible be a default value of "" (nothing/blank).
Forget about colorsets for a moment. Allow me to use 2k11 as an example.
In that theme, links have the following value:
Lets assume that a theme author wanted to give the user the opportunity to change that link color with a theme option:
In the tpl (unless there is a way to inject this directly into serendipity.css, which there probably is) - there has to be a condition that determines if this value is set to something, and if so, to then emit the appropriate css to override style.css.
But if it has been set to something other than what was in the stylesheet, the author/user/admin should be able to return to theme config, and unset that value, returning the link color to whatever is defined by style.css
And NO - I do not think this option needs to read the value of a specific style declaration from the theme's stylesheet (just in case anyone was thinking that).
One other thing I just noticed, there does not appear a way to set a specific color hex value in the browsers I am using... is it just a windows thing?
Yes, if we are going to have something like this, there needs to be a way select "none"... which could quite possible be a default value of "" (nothing/blank).
Forget about colorsets for a moment. Allow me to use 2k11 as an example.
In that theme, links have the following value:
Code: Select all
a, a:active, a:visited {
color: #3e5f81;
}
Code: Select all
array(
'var' => 'link2k11color',
'name' => 'Link Color',
'type' => 'color',
'default' => '',
),
But if it has been set to something other than what was in the stylesheet, the author/user/admin should be able to return to theme config, and unset that value, returning the link color to whatever is defined by style.css
And NO - I do not think this option needs to read the value of a specific style declaration from the theme's stylesheet (just in case anyone was thinking that).
One other thing I just noticed, there does not appear a way to set a specific color hex value in the browsers I am using... is it just a windows thing?