| 208 | c->ShowCtrl(show); |
| 209 | } |
| 210 | if (show) |
| 211 | ApplyNotebookTheme(page); |
| 212 | } |
| 213 | |
| 214 | void OptionsShell::ApplyNotebookTheme(OptionsPage* page) |
| 215 | { |
| 216 | if (!page) |
| 217 | return; |
| 218 | auto* nb = GetNotebook(); |
| 219 | if (!nb) |
| 220 | return; |
| 221 | |
| 222 | PackedColor textColor; |
| 223 | bool hasTextColor = NotebookTheme::ResourceColor("RscObjNotebookText", "color", textColor); |
| 224 | PackedColor buttonColor; |
| 225 | bool hasButtonColor = NotebookTheme::ResourceColor("RscObjNotebookButton", "color", buttonColor); |
| 226 | PackedColor buttonActiveColor; |
| 227 | bool hasButtonActiveColor = NotebookTheme::ResourceColor("RscObjNotebookButton", "colorActive", buttonActiveColor); |
| 228 |
nothing calls this directly
no test coverage detected