Material Design inspired vector style.
|
| | ~StyleMaterial () override = default |
| |
| std::string | containerResource () const override |
| | Resource string of a sunken container (list boxes, tree views, text areas) More...
|
| |
| std::string | separatorResource () const override |
| | Resource string of a menu separator. More...
|
| |
| std::string | scrollBarResource () const override |
| | Resource string of a scroll bar. More...
|
| |
| std::string | gripResource () const override |
| | Resource string of the grip of a scroll bar or of the cursor of a slider. More...
|
| |
| std::string | checkMarkResource () const override |
| | Resource string of the mark of a check box. More...
|
| |
| std::string | listBoxResource () const override |
| | Resource string of a list box. More...
|
| |
| | ~StyleBase () override = default |
| |
| void | draw (const Widget &widget, UIResource &resources, Vector2DRenderer &renderer, bool before) const override |
| |
| void | addResource (Widget &widget, const std::string &resources) override |
| |
| void | resize (Widget &widget, Rect &rect, UIResource &resources) override |
| |
| virtual std::string | treeIndentResource () const |
| | Resource string of one tree view indentation level. More...
|
| |
| virtual std::string | selectionResource () const |
| | Resource string of a selection rectangle. More...
|
| |
| virtual std::string | highlightResource () const |
| | Resource string of a pointed item rectangle. More...
|
| |
| virtual std::string | buttonResource () const |
| | Resource string of a push button. More...
|
| |
| virtual std::string | textEditResource () const |
| | Default resources of editable fields, trees and popup menus. More...
|
| |
| virtual std::string | treeViewResource () const |
| |
| virtual std::string | menuResource () const |
| |
| virtual std::string | sortArrowResource () const |
| | Resource string of a table sort direction indicator. More...
|
| |
| virtual | ~Style () = default |
| |
| virtual void | setOption (const std::string &name, const std::string &value) |
| |
| std::string | getOption (const std::string &name) const |
| |
| const float4 & | getTextColor () const |
| |
|
| static constexpr float | DEFAULT_CORNER_RADIUS {8.0f} |
| | Default corner radius of the containers. More...
|
| |
| static constexpr float | DEFAULT_SMALL_CORNER_RADIUS {2.0f} |
| | Default corner radius of the small widgets (check boxes, marks, indicators) More...
|
| |
| static constexpr float | OUTLINE_WIDTH {1.0f} |
| | Width of the outlines. More...
|
| |
| static constexpr float | THICK_OUTLINE_WIDTH {2.0f} |
| | Width of the outline of the selected/checked widgets. More...
|
| |
| static constexpr float | HOVER_OPACITY {0.08f} |
| | Opacity of the state layer of a pointed widget. More...
|
| |
| static constexpr float | PRESSED_OPACITY {0.12f} |
| | Opacity of the state layer of a pushed widget. More...
|
| |
| static constexpr float | DISABLED_OPACITY {0.38f} |
| | Opacity of a disabled widget. More...
|
| |
| static constexpr float | TAB_INDICATOR_HEIGHT {3.0f} |
| | Height of the indicator of the selected tab. More...
|
| |
| static constexpr std::string | DEFAULT_STYLE {"material"} |
| | Default UI style. More...
|
| |
| static constexpr float | DEFAULT_SCROLL_BAR_SIZE {18.0f} |
| | Default size of the scroll bars. More...
|
| |
| static constexpr float | DEFAULT_RADIO_BUTTON_SIZE {16.0f} |
| | Default size of the radio buttons. More...
|
| |
| static constexpr float | DEFAULT_CHECK_BOX_SIZE {16.0f} |
| | Default size of the check boxes. More...
|
| |
| static constexpr float | DEFAULT_TREE_INDENT_SIZE {12.0f} |
| | Default width of a tree view indentation level. More...
|
| |
| static constexpr float | DEFAULT_SORT_ARROW_SIZE {8.0f} |
| | Default width of a table sort direction indicator. More...
|
| |
| static constexpr float | DEFAULT_KNOB_SIZE {48.0f} |
| | Default size of the knobs. More...
|
| |
| static const float4 | DEFAULT_SURFACE {0.060597f, 0.085516f, 0.149705f, 1.0f} |
| | #3D4A63, background of the widgets More...
|
| |
| static const float4 | DEFAULT_SURFACE_HIGH {0.075005f, 0.102416f, 0.180928f, 1.0f} |
| | #45526E, background of the containers & of the raised widgets More...
|
| |
| static const float4 | DEFAULT_SHADOW_DARK {0.033392f, 0.047861f, 0.085516f, 1.0f} |
| | #2B364A, dark part of the relief More...
|
| |
| static const float4 | DEFAULT_SHADOW_LIGHT {0.172811f, 0.233839f, 0.386691f, 1.0f} |
| | #6B7DA1, bright part of the relief More...
|
| |
| static const float4 | DEFAULT_CHECK_MARK {1.0f, 1.0f, 1.0f, 1.0f} |
| | #FFFFFF, checkbox tick More...
|
| |
| static const float4 | DEFAULT_CLOSE_MARK {1.0f, 1.0f, 1.0f, 1.0f} |
| | #FFFFFF, close cross More...
|
| |
| static const float4 | DEFAULT_BUTTON {0.108857f, 0.149705f, 0.263096f, 1.0f} |
| | #546385, background of the buttons More...
|
| |
| static const float4 | DEFAULT_OUTLINE {0.189224f, 0.253134f, 0.411965f, 1.0f} |
| | #7082A6, outlines & separators More...
|
| |
| static const float4 | DEFAULT_SELECTED {0.172811f, 0.253134f, 0.451520f, 1.0f} |
| | #6B82AD, selected & pointed items More...
|
| |
| static const float4 | DEFAULT_TREE_LINES {0.224503f, 0.294243f, 0.451520f, 1.0f} |
| | #7A8CAD, branches of the tree views More...
|
| |
| static const float4 | DEFAULT_TEXT {0.803252f, 0.859814f, 0.938506f, 1.0f} |
| | #E6EDF7, texts More...
|
| |
| static const float4 | DEFAULT_ACCENT {0.478992f, 0.629753f, 0.918480f, 1.0f} |
| | #B2CCF5, accented parts More...
|
| |
| static const float4 | DEFAULT_ON_ACCENT {0.033392f, 0.047861f, 0.085516f, 1.0f} |
| | #2B364A, drawn over the accent More...
|
| |
|
| void | updateColorOptions () override |
| |
| void | updateOptions () override |
| |
| float4 | markColor (const Widget &, const StyleResource &) const override |
| |
| float4 | iconColor (const Icon &, const StyleResource &) const override |
| |
| float4 | disabledTextColor () const override |
| |
| void | drawPanel (const Panel &, StyleResource &, Vector2DRenderer &) const override |
| |
| void | drawBox (const Widget &, const StyleResource &, Vector2DRenderer &, bool pushable) const override |
| |
| void | drawLine (const Line &, const StyleResource &, Vector2DRenderer &) const override |
| |
| void | drawButton (const Button &, StyleResource &, Vector2DRenderer &) const override |
| |
| void | drawToggleButton (ToggleButton &, StyleResource &, Vector2DRenderer &) const override |
| |
| void | drawRadioButton (const RadioButton &, const StyleResource &, Vector2DRenderer &) const override |
| |
| void | drawCheckBox (const CheckBox &, StyleResource &, Vector2DRenderer &) const override |
| |
| void | drawFrame (Frame &, StyleResource &, Vector2DRenderer &) const override |
| |
| void | drawProgressBar (const ProgressBar &, const StyleResource &, Vector2DRenderer &) const override |
| |
| void | drawTabBar (const TabBar &, const StyleResource &, Vector2DRenderer &) const override |
| |
| void | drawKnob (const Knob &, const StyleResource &, Vector2DRenderer &) const override |
| |
| void | drawSelection (const Selection &, const StyleResource &, Vector2DRenderer &) const override |
| |
| void | drawTextEdit (const TextEdit &, Vector2DRenderer &) const override |
| |
| virtual float | borderSize () const |
| |
| virtual float | frameBorderSize () const |
| |
| float | frameTitleBarHeight (const Frame &widget) const |
| |
| void | drawTextEditSelection (const TextEdit &, Vector2DRenderer &) const |
| |
| float4 | textForeground (const Text &, const StyleResource &) const |
| |
| void | drawText (const Text &, const StyleResource &, Vector2DRenderer &) const |
| |
| void | drawRichTextArea (const RichTextArea &, Vector2DRenderer &) const |
| |
| void | drawIconImage (const IconImage &, const StyleResource &, Vector2DRenderer &) const |
| |
| void | drawIconSVG (const IconSVG &, const StyleResource &, Vector2DRenderer &) const |
| |
| void | drawTreeView (const TreeView &, const StyleResource &, Vector2DRenderer &) const |
| |
| void | drawGridLines (const Grid &, Vector2DRenderer &) const |
| |
| void | drawRuler (const Ruler &, const StyleResource &, Vector2DRenderer &) const |
| |
| void | drawColorSlider (const ColorSlider &, const StyleResource &, Vector2DRenderer &) const |
| |
| void | drawColorWheel (const ColorWheel &, const StyleResource &, Vector2DRenderer &) const |
| |
| float4 | controlArrowColor (const Widget &, const StyleResource &) const |
| |
| void | drawArrow (const Arrow &, const StyleResource &, Vector2DRenderer &) const |
| |
| void | drawProgressBarText (const ProgressBar &, Vector2DRenderer &, const float4 &color) const |
| |
| virtual void | init () |
| |
| void | updateSizeOptions () |
| |
| float4 | extractColor (const std::string &option, float r, float g, float b, float a=1.0f) const |
| |
| float4 | extractColor (const std::string &option, const float4 &defaultColor) const |
| |
| float | extractSize (const std::string &option, float defaultSize) const |
| |