Olive
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
Enumerations | Functions
olive::styling Namespace Reference

Enumerations

enum  Style { kOliveDefaultDark, kOliveDefaultLight, kNativeDarkIcons, kNativeLightIcons }
 Officially supported styles to use in Olive. More...
 

Functions

bool UseDarkIcons ()
 Return whether to use dark icons or light icons. More...
 
bool UseNativeUI ()
 Return whether to use native UI or Fusion. More...
 
QColor GetIconColor ()
 Return the current icon color based on Config::use_dark_icons. More...
 

Enumeration Type Documentation

Officially supported styles to use in Olive.

Enumerator
kOliveDefaultDark 

Qt Fusion-based cross-platform UI. The default styling of Olive. Can also be heavily customized with a CSS file.

kOliveDefaultLight 

Qt Fusion-based cross-platform UI. The default styling of Olive. Can also be heavily customized with a CSS file. This will use the

kNativeDarkIcons 

Use current OS's native styling (or at least Qt's default). Most UIs use a light theming, so this will automatically implement dark icons/UI elements.

kNativeLightIcons 

Use current OS's native styling (or at least Qt's default). Most UIs use a light theming, but in case one doesn't, this option will provide light icons for use with a dark theme.

Function Documentation

QColor olive::styling::GetIconColor ( )

Return the current icon color based on Config::use_dark_icons.

Also used by some other UI elements like the lines and text on the TimelineHeader

Returns

Either white or black depending on Config::use_dark_icons

bool olive::styling::UseDarkIcons ( )

Return whether to use dark icons or light icons.

Returns

TRUE if icons should be dark.

bool olive::styling::UseNativeUI ( )

Return whether to use native UI or Fusion.

Returns

TRUE if UI should use native styling