Hi Lorenzo
> I'm trying to fix some glitches (see the attached file
original_on_dark.png) with buttons and input boxes I observed when I
switched to a dark theme for my system.
An interesting problem. Which operating system do you use?
I'm guessing that your browser is aware of the dark theme, and is switching
the built in stylesheet so that text is white on a black background. The
glitches are the places that TiddlyWiki is not overriding the built-in
browser styles.
So, it ought to be fixable by adding a few explicit rules. Try creating a
tiddler $:/myStylesheet and the tag $:/tags/Stylesheet and the following
content:
textarea, input, button {
color: <<colour foreground>>;
background-color: <<colour background>>;
}
The trouble with that is that I think it will disrupt the display of
buttons on other systems, where the built-in browser styles actually apply
the platform look and feel to the buttons. But anyhow, let me know if it
works.
> I don't want to specify the full path to the button, so I added a class
to some of these buttons, but wouldn't be preferable to add some specific
classes directly into the source?
I think there are a few places where we could do with adding some further
classes to aid subsequent theming.
Best wishes
Jeremy
On Tue, Dec 23, 2014 at 5:35 PM, Lorenzo <[email protected]> wrote:
> Hi,
>
> I'm trying to fix some glitches (see the attached file
> *original_on_dark.png*) with buttons and input boxes I observed when I
> switched to a dark theme for my system.
>
> While selecting the input boxes its very easy because it seems they all
> have a specific class or are placed in a specific container, selecting some
> button seems a bit difficult, because most of them have no class and I
> don't know how easily distinguish them from some other.
>
> For example, look at the attachment "*fixing_on_dark.png*" where I
> applied a style to the input boxes and the buttons of the edit view.
> 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?
>
> I don't want to specify the full path to the button, so I added a class to
> some of these buttons, but wouldn't be preferable to add some specific
> classes directly into the source?
>
> Bye,
> Lorenzo
>
> --
> 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.
>
--
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.