-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(ui): Added theming support #150
Conversation
- Changed variants of buttons to unify the look and feel - Added support for themes specified in Theme.css - Added a new dependency "react-select" for selecting themes.
Select component now shows the correct color.
Removed bootstrap-dark from dependencies. The current theme is now synchronized with the react select component.
I've tried this and it is very nice feature, but we need some tweaks:
My old
Switching the theme to something else and switching back fixed the issue but it is annoying. Can we remap
|
Hey @jkowalski, will work on it on the weekend. Cheers, |
This PR comes with the following fixes: - Pastel theme should now be darker - Added a preference tab - Font size of the selector has been reduced - Fixed css - Moved AppContext under src/contexts - Renamed themes to provide backwards compatibility
Hi @jkowalski, i worked in the preferences tab. Would you mind to test it? Cheers, |
This is looking very promising, i found couple issues:
"Bytes to the base of 2" Can we convert this to a 2-item drop-down or a radio button:
|
Hey @jkowalski, thanks for the feedback. The points you listed can easily be fixed. I will fix them in the next commit. Maybe, we need to rebase after that 😄 Considering point 4, I would argue that we keep it as a readonly preferences. I would find it cumbersome to switch back to the preferences tab to just change the pagination settings. It is more convenient to set the page size below the actual table, when there are too many items. What do you think? Cheers, |
Hi @jkowalski, point 5 is still open. The other points have been incorporated in the latest commit and can be tested. Cheers, |
- Added a darker background for the theme "dark" - Added stripes back to the tables - Moved css files in src/css - Removed the Themeselector as it now implemented in PreferencesView
Hi @jkowalski, i will finalize this pr on the weekend. There are some minor things to be solved related to the dark theme. Would you mind checking if this PR than can be merged? Cheers |
The editor should now have the correct theme settings. Moved index.css to css folder.
Tables should not be readable in dark mode
This is great, we could probably improve theme selector a bit (icons instead of names), but i'm going to merge this and integrate into Kopia so folks can try it out. |
- theming support kopia/htmlui#150 - actions fix kopia/htmlui#163
* feat(ui): UI updates (Theming support, action fix) - theming support kopia/htmlui#150 - actions fix kopia/htmlui#163 * disable dark mode selector test
Hi,
this PR adds a preliminary theming support. Themes are defined in CSS and can be selected at the top right of the UI.
Note that this PR is currently a draft. The selection is not persistent and there is still some work to do. This PR also contains some minor code refactorings.
ui-theming-small.mp4
This PR closes #118
Cheers,