Loading...
Searching...
No Matches
TextAreaTheme.h
Go to the documentation of this file.
1//
2// TextAreaTheme.h
3//
4
5#ifndef MALENA_TEXTAREATHEME_H
6#define MALENA_TEXTAREATHEME_H
7
8#pragma once
9
13
14namespace ml
15{
30 {
33 float scrollBarWidth = 8.f;
34
35 // ── applyFrom ─────────────────────────────────────────────────────────
36
38 {
41 return *this;
42 }
43
44 // ── Getters / setters ─────────────────────────────────────────────────
45
46 [[nodiscard]] sf::Color getScrollBarColor() const { return scrollBarColor; }
47 [[nodiscard]] sf::Color getScrollBarTrackColor() const { return scrollBarTrackColor; }
48 [[nodiscard]] float getScrollBarWidth() const { return scrollBarWidth; }
49
52 void setScrollBarWidth(float w) { scrollBarWidth = w; }
53 };
54
55} // namespace ml
56
57#endif // MALENA_TEXTAREATHEME_H
Definition Component.h:22
Scrollbar color tokens for TextArea.
void setScrollBarColor(const sf::Color &c)
sf::Color getScrollBarTrackColor() const
void setScrollBarTrackColor(const sf::Color &c)
TextAreaTheme & applyFrom(const Theme &t)
sf::Color getScrollBarColor() const
sf::Color scrollBarColor
float getScrollBarWidth() const
void setScrollBarWidth(float w)
sf::Color scrollBarTrackColor
Universal design token set applied across all Themeable components.
Definition Theme.h:70
sf::Color border
Definition Theme.h:98
sf::Color surface
Definition Theme.h:80