Hi Lorenzo

I already tried your suggestion before to post my question, sorry for not
> to mention it, but I did not think it was useful. Indeed it works, but it
> seems to reset the "default controls theme", if I can call so, giving the
> ugly result you can see in the attachment "*fixing_on_dark_02.png*". Due
> to that result, I decided to write a complete theme for the form controls
> to make the wiki theme independent from the system one.
> Testing this theme brought me to to start this thread.
>

I'm not sure that I'm seeing the problem with fixing_on_dark_02.png; is it
just that some of the controls have an overly dark border?

But in any case, creating a new theme seems like a good way to go.


> I thought of two solutions: one is about to introduce some new classes for
> the "bare controls", presented in my firs post, the second is about to
> try to style the components before the snow white theme is applied, but
> probably this solution requires some style reset buttons like the hidden
> ones.
> In the last case, it's probably better to write a complete new theme and
> this is what I'm thinking to do. In any case, if it's possible to add a
> class like ".tc-bare-<control>" on buttons or inputs without a class, it
> could simplify the work.
>

In terms of styling the bare controls, I don't think adding classes to the
underlying widgets will help because that won't help you distinguish
between different buttons. Presumably the better answer is to add the
classes to the appropriate widget invocations. I'll happily accept pull
requests for those.

> Selecting the button "add" tag is easy because it's inside a span with
the class "tc-add-tag-button", but how can I apply the new style only to
the button "show preview" without affecting the buttons of the edit tiddler
toolbar?

Possibly a CSS3 selector could be used to target buttons that do not have
the class tc-btn-invisible?


> Just in case, I tested how the browser renders these controls on a very
> simple page without any style. The result in the attachment "
> *simple_page.png*" (the code of the page is in the textbox). Due to the
> appearance of the simple page, I think there is something that change the
> (system) default color of the text for button and input boxes.
>

Yes, that's consistent with my suggestion that Firefox changes the user
agent stylesheet when the dark theme is selected.

Best wishes

Jeremy


>
> Bye,
> Lorenzo
>



-- 
Jeremy Ruston
mailto:[email protected]

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.

Reply via email to