DarkTheme class new in Git master
#include <Magnum/Ui/Theme.h>
Theme for builtin widgets based on the m.css dark theme.
An instance of this class is meant to be passed to the UserInterfaceGL constructor, to UserInterfaceGL::
Theme animations
By default the theme is created without any animations to make the initial UI setup easier. Once the application is set up for animations, you can pass Feature::
Base classes
- class AbstractTheme new in Git master
- Base for UserInterface themes.
Public types
- enum class Feature: UnsignedByte { EssentialAnimations = 1 << 0, Animations = EssentialAnimations|(1 << 1) }
- Theme feature.
-
using Features = Containers::
EnumSet<Feature> - Theme features.
Constructors, destructors, conversion operators
Enum documentation
enum class Magnum:: Ui:: DarkTheme:: Feature: UnsignedByte
Theme feature.
| Enumerators | |
|---|---|
| EssentialAnimations |
Enable just essential animations, which is currently a blinking cursor for text editing. Subset of Feature:: Note that the application needs to be set up for animations in order to have them played at all. Without the application setup the animations will either forever stay in a scheduled state, making various UI operations feel stuck, or they'll be always treated as already finished, causing no visual difference compared to this flag not enabled. |
| Animations |
Enable all animations, which include fade out on pointer out, release and blur, as well as an animated text editing cursor. Superset of Feature:: Note that the application needs to be set up for animations in order to have them played at all. Without the application setup the animations will either forever stay in a scheduled state, making various UI operations feel stuck, or they'll be always treated as already finished, causing no visual difference compared to this flag not enabled. |
Typedef documentation
typedef Containers:: EnumSet<Feature> Magnum:: Ui:: DarkTheme:: Features
Theme features.
Function documentation
Debug& operator<<(Debug& debug,
DarkTheme:: Feature value) new in Git master
Debug output operator.
Debug& operator<<(Debug& debug,
DarkTheme:: Features value) new in Git master
Debug output operator.