Skip to content
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

Switch to making the color scheme selectable in proxmox 7.4 #159

Open
Happyrobot33 opened this issue Mar 23, 2023 · 9 comments
Open

Switch to making the color scheme selectable in proxmox 7.4 #159

Happyrobot33 opened this issue Mar 23, 2023 · 9 comments

Comments

@Happyrobot33
Copy link

With 7.4 being out, a integrated dark theme has been introduced. I think itd be nice to keep this repo relevant by switching over to making this discord coloration a selectable option like the light and dark mode is now

@DutchEllie
Copy link

This also only has a dark theme, but Gruvbox, Nord and other well-known colorschemes are also very cool! Maybe we can get those in here too?

@SophiaAtkinson
Copy link

I'm not too fond of the new built-in dark mode, colors are too harsh on the eyes

@Weilbyte
Copy link
Owner

Going to have to look more into this, but it would have to be a separate project.

@Happyrobot33
Copy link
Author

initial research into those shows that the theme map is hardcoded. In order to change the list, theme_map in /usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js needs to be edited, and the theme needs to be placed in /usr/share/javascript/proxmox-widget-toolkit/themes. The proper format for css files there is theme-{THEME NAME}.css

the theme name is all that needs to be added to the theme_map

im going to look into how feasible it is to get a working version of a patcher up and running, shouldnt be that difficult

@Happyrobot33
Copy link
Author

the existing PVEDiscordDark.css file seems to work, it just needs some tweaks to support the new stylable components like graphs

@Happyrobot33
Copy link
Author

image

@Happyrobot33
Copy link
Author

built-in dark mode does this to get the dark version of the proxmox logo

img[id^="proxmoxlogo-"][id$="-img"] {
    filter: invert(1) hue-rotate(180deg)
}

@Happyrobot33
Copy link
Author

for anyone interested I have a extremely basic working version here that I am iterating on
https://github.com/Happyrobot33/PVEThemes

@Happyrobot33
Copy link
Author

definable themes with fixed charts
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants