|
UniNews
University news from Greek and international universities in one place
|
Classes | |
| class | Palette |
Functions | |
| Palette | palette (str theme) |
| Path | arrow_file (str direction, str color) |
| str | stylesheet (str theme) |
Variables | |
| str | LIGHT = "light" |
| str | DARK = "dark" |
| dict | PALETTES |
| str | FONT_FAMILY = '"Noto Sans", "Inter", "Arial"' |
| dict | ARROWS |
All colours and stylesheets. Nothing here knows about articles or sources.
| Path uninews.ui.theme.arrow_file | ( | str | direction, |
| str | color | ||
| ) |
Write (once) a small chevron SVG and return its path. Qt stylesheets can only point at image files, so the arrows for combo boxes and spin boxes are generated instead of shipped as assets.
| Palette uninews.ui.theme.palette | ( | str | theme | ) |
| str uninews.ui.theme.stylesheet | ( | str | theme | ) |
The whole app's CSS. Set it once on the window; children inherit it.
| dict uninews.ui.theme.ARROWS |
| str uninews.ui.theme.DARK = "dark" |
| str uninews.ui.theme.FONT_FAMILY = '"Noto Sans", "Inter", "Arial"' |
| str uninews.ui.theme.LIGHT = "light" |
| dict uninews.ui.theme.PALETTES |