Commit Graph

137 Commits

Author SHA1 Message Date
mkpaz
b8c5acae03 Add tweak to align table columns 2022-09-05 10:08:00 +04:00
mkpaz
b50dd57f75 Add edge-to-edge tweak
Supposed to be used when component is placed within another control that already provides external borders. Should not be confused with 'no-border' style. Some controls in the 'edge-to-edge' mode still need a border, e.g. toolbar always needs the bottom border.
2022-09-05 08:50:13 +04:00
mkpaz
5b8f5ddd36 Improve Music Player showcase
Major visual lift-up
2022-09-04 19:48:32 +04:00
mkpaz
c102d25196 Rename color scale variables
The main problem of the old approach is that variables which contain real color
name (blue, green, red) were exposed as looked-up colors. This is because
GitHub Primer only specifies four functional variables for each color
(foreground, emphasis, muted and subtle) and only three of them can be used as
background color, which is clearly not enough to create hover, pressed or other
color effects. So, we can either use dynamic color modification functions,
which can lead to less predictable results, or use colors from the predefined
color palette, or create a bunch of the ugly named color variables for every
combination (`-color-accent-muted-hover`, `-color-accent-subtle-hover` and so
on) for general purposes.

Still, it worked fine until changing accent color feature wasn't implemented.
To fully change accent or any other color, one should change not only the
functional variables, but also the corresponding color scale, which is
responsible for background effects. As an outcome, if we change the accent
color to purple, we end-up with `-color-accent-emphasis` which is purple and
`-color-blue-5`which is also purple. That's just confusing.

This commit resolves this by renaming all color scale stuff to functional
variables. So, `-color-blue-*` becomes `-color-accent-*` and so on, and this
long explanation supposed to serve as a reminder that nothing is perfect and
this is just another trade-off example.
2022-09-03 20:24:09 +04:00
mkpaz
dd1a8f6452 Add tweak rule to hide MenuButton dropdown arrow 2022-09-02 21:08:28 +04:00
mkpaz
3ab95551f3 Add floating tabs support 2022-08-31 22:01:25 +04:00
mkpaz
aad6b06e12 Merge common dark mode customizations into main stylesheet 2022-08-31 14:45:08 +04:00
mkpaz
f4cfb094c4 Improve tooltip/popover borders
* uniform tooltip and popover border styling
* expose SASS variables
2022-08-31 14:09:21 +04:00
mkpaz
de5a5795a6 Migrate Sampler stylesheet to SASS 2022-08-31 13:26:05 +04:00
mkpaz
909451fb8b Fix TitledPane disabled effect
Opacity shouldn't be applied to the titled pane borders, otherwise disabled accordion blocks would look weird.
2022-08-31 08:48:41 +04:00
mkpaz
69ba0ed7af Reduce Toolbar padding 2022-08-30 16:34:12 +04:00
mkpaz
bb8ed84b64 Improve TabPane styling
* expose SASS variables
* prettier UI
* refactoring and code cleanup
2022-08-30 16:26:02 +04:00
mkpaz
b553bb5b32 Use gray shades instead of accent shades for virtualized controls 2022-08-30 14:27:09 +04:00
mkpaz
4e50660a8f Refactor themes to use color scale
Color shades should be declared upfront without resorting to the dynamic brightness modification functions. All shades are also exposed as looked-up colors.
2022-08-30 13:28:10 +04:00
mkpaz
9cce26c4f0 Use 'subtle' color instead of 'inset' for controls 2022-08-29 11:11:52 +04:00
mkpaz
27cfcf704e Use overlay color variable for popover and tooltip 2022-08-29 10:46:19 +04:00
mkpaz
197618ef2e Add dense style support for TreeView 2022-08-26 09:35:24 +04:00
mkpaz
5996323899 Change radio button style 2022-08-25 16:32:31 +04:00
mkpaz
c2e03d2193 Implement changing font family at runtime 2022-08-25 16:03:55 +04:00
mkpaz
8c60ae7c07 Fix hover effect on disabled menu items 2022-08-25 13:50:23 +04:00
mkpaz
02da356876 Fix double border in nested column headers 2022-08-25 13:39:59 +04:00
mkpaz
5db005f7d5 Fix table view placeholder background 2022-08-25 13:26:36 +04:00
mkpaz
a7255949ce Add Nord color themes
Both light and dark variants. Needs further polishing, but still pretty usable.
2022-08-21 17:00:41 +04:00
mkpaz
996385ccd3 Replace menu button arrow icon
Although with the previous chevron icon menu button can't be confused with combo box, it looks too cumbersome.
2022-08-19 17:06:10 +04:00
mkpaz
96a52eabfe Allow atlanta-styles module deployment
This change is intended to allow applications to create custom themes. More info https://github.com/mkpaz/atlantafx/pull/2#issuecomment-1200416596.
2022-08-19 16:44:17 +04:00
mkpaz
fde28279bc Bump Dart SASS version and eliminate HSL colors 2022-08-19 16:37:43 +04:00
mkpaz
a6d68cd7eb Improve toggle switch styling
Increase the thumb borders to make it more distinguishable.
2022-08-19 16:13:16 +04:00
mkpaz
0276812c08 Fix menu button focused state issues 2022-08-19 15:25:09 +04:00
mkpaz
2e2c7a0e67 Add color variables for slider
Also use white color for slider thumb in dark mode.
2022-08-19 14:34:02 +04:00
mkpaz
9d307524ae Fix button border in hover state 2022-08-19 14:16:25 +04:00
mkpaz
fc2c54b694 Update TableView styles
Use looked-up colors to style tables.
2022-08-02 15:57:57 +04:00
mkpaz
9a2c4c954b Fix CSS rules order
Components styles should not precede root styles.
2022-08-02 13:16:55 +04:00
mkpaz
2a9dbe8413 Force Dart SASS version
This resolves the issue with HSL colors that aren't supported by JavaFX.
2022-08-02 13:06:42 +04:00
Florian Enner
a0a5f0ca85
Replace maven-frontend-plugin with sass-cli-maven-plugin
Use Maven wrapper around Dart SASS binary instead of downloading and installing NodeJS / NPM locally. This also eliminates dependency from Grunt and its modules.
2022-08-02 12:46:54 +04:00
mkpaz
84c9a23fa9 Add showcases 2022-08-02 09:10:48 +04:00
mkpaz
62f94c6a2c Release 0.1.0-SNAPSHOT 2022-07-24 20:55:23 +04:00
mkpaz
5169b3de7b Initial commit 2022-07-23 20:02:13 +04:00