diff options
| author | Jan-Hendrik Willms <tleilax+studip@gmail.com> | 2025-07-16 15:22:13 +0200 |
|---|---|---|
| committer | Jan-Hendrik Willms <tleilax+studip@gmail.com> | 2025-07-16 15:22:18 +0200 |
| commit | 13bd593a0a34a99731e996beb4e3a600a9a17a9d (patch) | |
| tree | 09d2fd8d7fec91d4fd4dc2897d34952c88738676 /lib/classes | |
| parent | 40beced622d76d4ed339718eb790a8e0f13e57a3 (diff) | |
use new default role for icons, fixes #5729biest-5729
Diffstat (limited to 'lib/classes')
| -rw-r--r-- | lib/classes/Icon.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/classes/Icon.php b/lib/classes/Icon.php index 2ddc4a1..f12cdae 100644 --- a/lib/classes/Icon.php +++ b/lib/classes/Icon.php @@ -22,8 +22,9 @@ class Icon implements JsonSerializable public const SIZE_LARGE = 32; public const DEFAULT_COLOR = 'blue'; - public const DEFAULT_ROLE = 'clickable'; + public const DEFAULT_ROLE = 'default'; + public const ROLE_DEFAULT = 'default'; public const ROLE_INFO = 'info'; public const ROLE_CLICKABLE = 'clickable'; public const ROLE_ACCEPT = 'accept'; @@ -47,6 +48,7 @@ class Icon implements JsonSerializable * This is the magical Role to Color mapping. */ private static array $roles_to_colors = [ + self::ROLE_DEFAULT => self::DEFAULT_COLOR, self::ROLE_INFO => 'black', self::ROLE_CLICKABLE => 'blue', self::ROLE_ACCEPT => 'green', |
