reviewboard.themes.ui.default¶
Default UI themes for Review Board.
New in version 7.0.
- class LightUITheme[source]¶
Bases:
BaseUITheme
A light mode theme.
This is the traditional light appearance used for Review Board.
New in version 7.0.
- theme_id: ClassVar[str] = 'light'[source]¶
The unique ID of the theme.
This is used for registration and lookup purposes.
These only need to be unique within other UI themes.
- Type:
- name: ClassVar[StrOrPromise] = 'Light mode'[source]¶
The displayed name of the theme.
This will be shown to the user when choosing themes. It should be localized.
- Type:
- ink_color_scheme: ClassVar[InkColorScheme] = 'light'[source]¶
The value for the
data-ink-color-scheme=
HTML attribute.This informs the CSS and JavaScript of the current color scheme.
- Type:
InkColorScheme
- __annotations__ = {'ink_color_scheme': 'ClassVar[InkColorScheme]', 'name': 'ClassVar[StrOrPromise]', 'theme_id': 'ClassVar[str]'}¶
- class DarkUITheme[source]¶
Bases:
BaseUITheme
A dark mode theme.
New in version 7.0.
- theme_id: ClassVar[str] = 'dark'[source]¶
The unique ID of the theme.
This is used for registration and lookup purposes.
These only need to be unique within other UI themes.
- Type:
- name: ClassVar[StrOrPromise] = 'Dark mode'[source]¶
The displayed name of the theme.
This will be shown to the user when choosing themes. It should be localized.
- Type:
- ink_color_scheme: ClassVar[InkColorScheme] = 'dark'[source]¶
The value for the
data-ink-color-scheme=
HTML attribute.This informs the CSS and JavaScript of the current color scheme.
- Type:
InkColorScheme
- __annotations__ = {'ink_color_scheme': 'ClassVar[InkColorScheme]', 'name': 'ClassVar[StrOrPromise]', 'theme_id': 'ClassVar[str]'}¶
- class SystemUITheme[source]¶
Bases:
BaseUITheme
A theme using the current system appearance.
This will auto-select light mode or dark mode based on the browser-specified preference.
New in version 7.0.
- theme_id: ClassVar[str] = 'system'[source]¶
The unique ID of the theme.
This is used for registration and lookup purposes.
These only need to be unique within other UI themes.
- Type:
- name: ClassVar[StrOrPromise] = 'System theme'[source]¶
The displayed name of the theme.
This will be shown to the user when choosing themes. It should be localized.
- Type:
- ink_color_scheme: ClassVar[InkColorScheme] = 'system'[source]¶
The value for the
data-ink-color-scheme=
HTML attribute.This informs the CSS and JavaScript of the current color scheme.
- Type:
InkColorScheme
- __annotations__ = {'ink_color_scheme': 'ClassVar[InkColorScheme]', 'name': 'ClassVar[StrOrPromise]', 'theme_id': 'ClassVar[str]'}¶