Magnum::Ui::McssDarkStyle class new in Git master

Style 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::create(), tryCreate() or setStyle(). See the AbstractUserInterface introduction docs for a step-by-step guide for setting up an user interface.

Style animations

By default the style is created without any animations to make the initial UI setup easier. Once the application is set up for animations, you can pass Feature::Animations to the constructor to enable fade out animations in certain style transitions and an animated cursor in text editing fields. In comparison, for a distraction-less behavior, Feature::EssentialAnimations is just the text editing cursor alone, blinking without any smooth transition.

Base classes

class AbstractStyle new in Git master
Base for UserInterface styles.

Public types

enum class Feature: UnsignedByte { EssentialAnimations = 1 << 0, Animations = EssentialAnimations|(1 << 1) }
Style feature.
using Features = Containers::EnumSet<Feature>
Style features.

Constructors, destructors, conversion operators

McssDarkStyle(Features features = {}) explicit
Constructor.

Enum documentation

enum class Magnum::Ui::McssDarkStyle::Feature: UnsignedByte

Style feature.

Enumerators
EssentialAnimations

Enable just essential animations, which is currently a blinking cursor for text editing. Subset of Feature::Animations.

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::EssentialAnimations.

Typedef documentation

typedef Containers::EnumSet<Feature> Magnum::Ui::McssDarkStyle::Features

Style features.

Function documentation

Magnum::Ui::McssDarkStyle::McssDarkStyle(Features features = {}) explicit

Constructor.

Parameters
features Style features to enable