Reference Codebot.Render.Widgets.Themes.pas
Part of the Codebot Render package
The Codebot.Render.Widgets.Themes unit holds the themes that draw widgets on a canvas. Create one with NewTheme, such as NewTheme(Canvas, TChicagoTheme), and give it to the Theme of a widget, or override DefaultTheme in your widget scene. Themes load their fonts from the fonts folder of your assets.
| Theme | Appearance |
|---|---|
| TArcDarkTheme | A flat dark theme, and the default theme of a widget scene. |
| TChicagoTheme | Windows 95. |
| TGraphiteTheme | Light gray with soft gradients. |
| TExperienceTheme | Windows XP. |
| TVistaTheme | Windows 7. |
| TCupertinoTheme | macOS. |
TCanvasTheme is the base class of the themes and draws what they share, and TDesktopTheme holds what the desktop styled themes share. Neither is a theme on its own.
Items 236 items
| Name | Kind | Line |
|---|---|---|
| colorBlack | constant | 19 |
| colorSilver | constant | 21 |
| colorWhite | constant | 20 |
| FontRes | constant | 17 |
| NewTheme | function | 413 |
| TArcDarkTheme | class | 162 |
| CalcCloseRect | function | 194 |
| CalcColor | function | 192 |
| CalcSize | function | 193 |
| DrawButton | procedure | 176 |
| DrawCheckBox | procedure | 179 |
| DrawClose | procedure | 187 |
| DrawContainer | procedure | 188 |
| DrawEdit | procedure | 168 |
| DrawGlyphButton | procedure | 177 |
| DrawGlyphImage | procedure | 178 |
| DrawHeaderCell | procedure | 174 |
| DrawLabel | procedure | 185 |
| DrawListFrame | procedure | 170 |
| DrawMemo | procedure | 169 |
| DrawScrollBar | procedure | 172 |
| DrawSlider | procedure | 180 |
| DrawSpinBox | procedure | 181 |
| DrawWindow | procedure | 186 |
| DropColors | procedure | 183 |
| FontSize | function | 164 |
| GlyphSize | function | 165 |
| Init | procedure | 167 |
| Palette | function | 191 |
| PostDrawSpinBox | procedure | 182 |
| TitleSize | function | 166 |
| TCanvasTheme | class | 28 |
| CalcCloseRect | function | 143 |
| CalcTextHeight | function | 140 |
| CalcTextWidth | function | 141 |
| DrawButton | procedure | 59 |
| DrawCaption | procedure | 47 |
| DrawCheckBox | procedure | 62 |
| DrawClose | procedure | 119 |
| DrawContainer | procedure | 124 |
| DrawCross | procedure | 121 |
| DrawDropScroll | procedure | 113 |
| DrawEdit | procedure | 51 |
| DrawEditText | procedure | 49 |
| DrawGlyphButton | procedure | 60 |
| DrawGlyphImage | procedure | 61 |
| DrawGridHeader | procedure | 88 |
| DrawHeaderCell | procedure | 95 |
| DrawHeaderLines | procedure | 103 |
| DrawHeaderText | procedure | 100 |
| DrawLabel | procedure | 114 |
| DrawListBox | procedure | 72 |
| DrawListBoxItems | procedure | 75 |
| DrawListFrame | procedure | 69 |
| DrawMemo | procedure | 52 |
| DrawMemoText | procedure | 57 |
| DrawScrollBar | procedure | 54 |
| DrawScrollBox | procedure | 85 |
| DrawScrollGrid | procedure | 81 |
| DrawSlider | procedure | 63 |
| DrawSpinBox | procedure | 64 |
| DrawText | procedure | 45 |
| DrawTextMemo | procedure | 46 |
| DrawWindow | procedure | 115 |
| DropColors | procedure | 108 |
| Fixup | procedure | 130 |
| FontSize | function | 126 |
| GlyphSize | function | 127 |
| Init | procedure | 129 |
| MeasureMemo | function | 44 |
| MeasureText | function | 43 |
| PopClip | procedure | 147 |
| PopMatrix | procedure | 145 |
| PostDrawSpinBox | procedure | 104 |
| PushClip | procedure | 146 |
| PushMatrix | procedure | 144 |
| Render | procedure | 138 |
| RenderHint | procedure | 139 |
| Scaled | function | 134, 135 |
| Tint | function | 123 |
| TitleSize | function | 128 |
| Canvas | property | 149 |
| Font | property | 153 |
| FontHeight | property | 151 |
| Glyph | property | 155 |
| Pen | property | 136 |
| Title | property | 157 |
| TChicagoTheme | class | 199 |
| CalcCloseRect | function | 238 |
| CalcColor | function | 236 |
| CalcSize | function | 237 |
| DrawButton | procedure | 220 |
| DrawCaption | procedure | 206 |
| DrawCheckBox | procedure | 223 |
| DrawClose | procedure | 231 |
| DrawContainer | procedure | 232 |
| DrawEdit | procedure | 212 |
| DrawFocus | procedure | 207 |
| DrawGlyphButton | procedure | 221 |
| DrawGlyphImage | procedure | 222 |
| DrawHeaderCell | procedure | 218 |
| DrawLabel | procedure | 229 |
| DrawListFrame | procedure | 214 |
| DrawMemo | procedure | 213 |
| DrawScrollBar | procedure | 216 |
| DrawSlider | procedure | 224 |
| DrawSpinBox | procedure | 225 |
| DrawSunken | procedure | 209 |
| DrawThickBorder | procedure | 210 |
| DrawThinBorder | procedure | 208 |
| DrawWindow | procedure | 230 |
| DropColors | procedure | 227 |
| FontSize | function | 203 |
| GlyphSize | function | 204 |
| Init | procedure | 211 |
| Palette | function | 235 |
| PostDrawSpinBox | procedure | 226 |
| TitleSize | function | 205 |
| TCupertinoTheme | class | 383 |
| ButtonHeight | function | 387 |
| CalcCloseRect | function | 409 |
| CaptionHeight | function | 386 |
| DrawButton | procedure | 402 |
| DrawCheckBox | procedure | 403 |
| DrawClose | procedure | 407 |
| DrawEdit | procedure | 394 |
| DrawHeaderCell | procedure | 400 |
| DrawListFrame | procedure | 396 |
| DrawMemo | procedure | 395 |
| DrawScrollBar | procedure | 398 |
| DrawSlider | procedure | 404 |
| DrawSpinBox | procedure | 405 |
| DrawWindow | procedure | 406 |
| FocusRing | procedure | 393 |
| FontSize | function | 390 |
| Init | procedure | 392 |
| Palette | function | 385 |
| ThumbSize | function | 388 |
| TitleSize | function | 391 |
| WindowRadius | function | 389 |
| TDesktopTheme | class | 283 |
| ButtonHeight | function | 290 |
| CalcColor | function | 314 |
| CalcSize | function | 315 |
| CaptionHeight | function | 289 |
| CheckCaption | procedure | 302 |
| CheckMark | procedure | 300 |
| CheckRect | function | 301 |
| DrawContainer | procedure | 312 |
| DrawGlyphButton | procedure | 308 |
| DrawGlyphImage | procedure | 309 |
| DrawLabel | procedure | 311 |
| GlyphSize | function | 306 |
| GripLines | procedure | 304 |
| HorzGradient | procedure | 299 |
| Init | procedure | 307 |
| LoadFonts | procedure | 305 |
| Palette | function | 288 |
| PostDrawSpinBox | procedure | 310 |
| Shade | function | 296 |
| SpinArrows | procedure | 303 |
| ThumbSize | function | 291 |
| VertGradient | procedure | 298 |
| WindowBorder | function | 294 |
| WindowRadius | function | 292 |
| TExperienceTheme | class | 320 |
| ButtonHeight | function | 324 |
| CalcCloseRect | function | 346 |
| CaptionHeight | function | 323 |
| DrawButton | procedure | 339 |
| DrawCheckBox | procedure | 340 |
| DrawClose | procedure | 344 |
| DrawEdit | procedure | 331 |
| DrawHeaderCell | procedure | 337 |
| DrawListFrame | procedure | 333 |
| DrawMemo | procedure | 332 |
| DrawScrollBar | procedure | 335 |
| DrawSlider | procedure | 341 |
| DrawSpinBox | procedure | 342 |
| DrawWindow | procedure | 343 |
| FontSize | function | 328 |
| Init | procedure | 330 |
| Palette | function | 322 |
| ThumbSize | function | 325 |
| TitleSize | function | 329 |
| WindowBorder | function | 327 |
| WindowRadius | function | 326 |
| TGraphiteTheme | class | 243 |
| CalcCloseRect | function | 277 |
| CalcColor | function | 275 |
| CalcSize | function | 276 |
| DrawButton | procedure | 259 |
| DrawCheckBox | procedure | 262 |
| DrawClose | procedure | 270 |
| DrawContainer | procedure | 271 |
| DrawEdit | procedure | 251 |
| DrawGlyphButton | procedure | 260 |
| DrawGlyphImage | procedure | 261 |
| DrawHeaderCell | procedure | 257 |
| DrawLabel | procedure | 268 |
| DrawListFrame | procedure | 253 |
| DrawMemo | procedure | 252 |
| DrawScrollBar | procedure | 255 |
| DrawSlider | procedure | 263 |
| DrawSpinBox | procedure | 264 |
| DrawWindow | procedure | 269 |
| DropColors | procedure | 266 |
| FontSize | function | 248 |
| GlyphSize | function | 249 |
| Init | procedure | 247 |
| Palette | function | 274 |
| PostDrawSpinBox | procedure | 265 |
| TitleSize | function | 250 |
| TVistaTheme | class | 351 |
| ButtonFace | procedure | 362 |
| ButtonHeight | function | 355 |
| CalcCloseRect | function | 378 |
| CaptionHeight | function | 354 |
| DrawButton | procedure | 371 |
| DrawCheckBox | procedure | 372 |
| DrawClose | procedure | 376 |
| DrawEdit | procedure | 363 |
| DrawHeaderCell | procedure | 369 |
| DrawListFrame | procedure | 365 |
| DrawMemo | procedure | 364 |
| DrawScrollBar | procedure | 367 |
| DrawSlider | procedure | 373 |
| DrawSpinBox | procedure | 374 |
| DrawWindow | procedure | 375 |
| FontSize | function | 359 |
| Init | procedure | 361 |
| Palette | function | 353 |
| ThumbSize | function | 356 |
| TitleSize | function | 360 |
| WindowBorder | function | 358 |
| WindowRadius | function | 357 |