Thanks everyone for the feedback,
here's the last iteration (the last portion of new suggestions) before I start updating these bits in the core:
- Based on the feedback, both shadows in inputs and colored text selection won't get into 2.10.3 (will either work more on them and propose in the next versions or will put them into a separate theme for those who are interested);
- This time, I'm proposing to try not only styles, but also CssOptionsPlugin, which will most likely be a part of 2.10.3 core and which:
- Introduces css- options that are instantly applied as css variables on change (without any refreshing);
- Allows to introduce new features with forward compatibility (unlike shadow tiddlers) – this time, border rounding;
- What's included in this iteration:
- (as previously) outline of focused elements, colored in accord with ColorPalette;
- border-radius for various elements (block and inline);
- sidebar options: no background color, instead size and border consistent with tabs below;
- system-ui font (i.e. default font-family native to your OS);
- hover colors of links and tabs – now consistent with hover of buttons;
- semi-borderless tables (let me know how they work in content: maybe it's better to only apply them to backstage tables in this iteration);
- Also, below is a proposed version of default OptionsPanel content, more brief and clean.
Let me know if you have objections, suggestions, or appreciations. I hope to accumulate at least 3 reactions before proceeding to the core update.
Best regards,
Yakov.
New OptionsPanel content:
These options are saved in your browser, unless are written in SystemSettings
<<option chkAutoSave>> Automatically save changes
<<option chkSaveBackups>> Save backups
<<option chkCaseSensitiveSearch>> Case-sensitive searching
<<option chkRegExpSearch>> Search with ~RegExp-s
<<option chkAnimate>> Enable animations
[[AdvancedOptions]]
Add this to SystemSettings to define the border radius variables (for the stylesheet below):
cssBlockBorderRadius: 4px
cssInlineBorderRadius: 0.4em
If you'd like to see how changing them is instantly applied to styles, try <<option cssBlockBorderRadius>> (it is applied to the input itself, beside other elements). If you'd like to see it in AdvancedOptions, add this to the end of CssOptionsPlugin:
tw.options.define("cssBlockBorderRadius", "4px", "experimental, sets border radius of several components")
StyleSheet snippet:
/*{{{*/
/* == nice inputs and in focus == */
textarea, input[type="text"], input:not([type]), input[type="file"], input[type="search"], select,
.editor textarea {
padding: 0.3em 0.5em 0.2em;
border-radius: var(--blockBorderRadius);
border-width: 1px;
box-sizing: border-box;
}
:focus {
outline-color: [[ColorPalette::SecondaryMid]];
}
/* == consistent hover/active states (a minimal iteration) == */
a:hover {
background-color: [[ColorPalette::SecondaryLight]];
color: [[ColorPalette::PrimaryMid]];
}
/* == sidebar options, consistent with tabs == */
#sidebarOptions .sliderPanel {
background: inherit;
margin-left: 0;
font-size: 1em;
border: 1px solid #ccc;
}
#sidebarTabs .tabContents {
width: unset;
}
/* == semi-borderless tables == */
.twtable td, .twtable tr {
border: none;
border-bottom: 1px solid #ccc;
}
.twtable tr:last-child, .twtable tr:last-child > td {
border: none;
}
/* if you'd like to apply this to backstage only, use this instead (remove the
border-bottom
bit to get fully borderless):
.listView th, .listView td, .listView tr {
border: none;
border-bottom: 1px solid #ccc;
}
*/
/* == border-radius for other elements (testing option-variables) == */
.tagging, .tagged, pre, #messageArea, .annotation, .popup, .wizardStep, .tabContents, #sidebarOptions .sliderPanel {
border-radius: var(--blockBorderRadius);
}
/* inputs+: above */
/* non-block elements should be handled differently: value in em */
.tab {
border-radius: var(--inlineBorderRadius) var(--inlineBorderRadius) 0 0;
}
.button {
border-radius: var(--inlineBorderRadius);
}
.popup .button {
border-radius: 0;
}
.tiddlyLink {
border-radius: var(--inlineBorderRadius);
padding: 0.1em 0.2em 0.25em;
margin: 0 -0.2em;
}
.popup .tiddlyLink {
border-radius: 0;
margin: 0;
}
/* == font family consistent with OS == */
body {
font-family: system-ui, arial, helvetica, sans-serif;
}
/*}}}*/
суббота, 25 января 2025 г. в 08:53:42 UTC+3, Wolfgang: