Reference Codebot.Render.Widgets.Themes.pas
Part of the Codebot Render package
Each version implies all earlier versions
The Codebot.Render.Widgets.Themes unit defines the themes that draw widgets on a canvas. TCanvasTheme is the base class of the themes and draws the parts they have in common. Themes load their fonts from the fonts folder of the 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 |
Items 232 items
| Name | Kind | Line |
|---|---|---|
| colorBlack | constant | 19 |
| colorSilver | constant | 21 |
| colorWhite | constant | 20 |
| FontRes | constant | 17 |
| NewTheme | function | 402 |
| TArcDarkTheme | class | 151 |
| CalcCloseRect | function | 183 |
| CalcColor | function | 181 |
| CalcSize | function | 182 |
| DrawButton | procedure | 165 |
| DrawCheckBox | procedure | 168 |
| DrawClose | procedure | 176 |
| DrawContainer | procedure | 177 |
| DrawEdit | procedure | 157 |
| DrawGlyphButton | procedure | 166 |
| DrawGlyphImage | procedure | 167 |
| DrawHeaderCell | procedure | 163 |
| DrawLabel | procedure | 174 |
| DrawListFrame | procedure | 159 |
| DrawMemo | procedure | 158 |
| DrawScrollBar | procedure | 161 |
| DrawSlider | procedure | 169 |
| DrawSpinBox | procedure | 170 |
| DrawWindow | procedure | 175 |
| DropColors | procedure | 172 |
| FontSize | function | 153 |
| GlyphSize | function | 154 |
| Init | procedure | 156 |
| Palette | function | 180 |
| PostDrawSpinBox | procedure | 171 |
| TitleSize | function | 155 |
| TCanvasTheme | class | 28 |
| CalcCloseRect | function | 134 |
| CalcTextHeight | function | 131 |
| CalcTextWidth | function | 132 |
| DrawButton | procedure | 59 |
| DrawCaption | procedure | 47 |
| DrawCheckBox | procedure | 62 |
| DrawClose | procedure | 115 |
| DrawContainer | procedure | 120 |
| DrawCross | procedure | 117 |
| DrawDropScroll | procedure | 109 |
| DrawEdit | procedure | 51 |
| DrawEditText | procedure | 49 |
| DrawGlyphButton | procedure | 60 |
| DrawGlyphImage | procedure | 61 |
| DrawGridHeader | procedure | 84 |
| DrawHeaderCell | procedure | 91 |
| DrawHeaderLines | procedure | 99 |
| DrawHeaderText | procedure | 96 |
| DrawLabel | procedure | 110 |
| DrawListBox | procedure | 72 |
| DrawListBoxItems | procedure | 75 |
| DrawListFrame | procedure | 69 |
| DrawMemo | procedure | 52 |
| DrawMemoText | procedure | 57 |
| DrawScrollBar | procedure | 54 |
| DrawScrollGrid | procedure | 81 |
| DrawSlider | procedure | 63 |
| DrawSpinBox | procedure | 64 |
| DrawText | procedure | 45 |
| DrawTextMemo | procedure | 46 |
| DrawWindow | procedure | 111 |
| DropColors | procedure | 104 |
| Fixup | procedure | 126 |
| FontSize | function | 122 |
| GlyphSize | function | 123 |
| Init | procedure | 125 |
| MeasureMemo | function | 44 |
| MeasureText | function | 43 |
| PopMatrix | procedure | 136 |
| PostDrawSpinBox | procedure | 100 |
| PushMatrix | procedure | 135 |
| Render | procedure | 129 |
| RenderHint | procedure | 130 |
| Tint | function | 119 |
| TitleSize | function | 124 |
| Canvas | property | 138 |
| Font | property | 142 |
| FontHeight | property | 140 |
| Glyph | property | 144 |
| Pen | property | 127 |
| Title | property | 146 |
| TChicagoTheme | class | 188 |
| CalcCloseRect | function | 227 |
| CalcColor | function | 225 |
| CalcSize | function | 226 |
| DrawButton | procedure | 209 |
| DrawCaption | procedure | 195 |
| DrawCheckBox | procedure | 212 |
| DrawClose | procedure | 220 |
| DrawContainer | procedure | 221 |
| DrawEdit | procedure | 201 |
| DrawFocus | procedure | 196 |
| DrawGlyphButton | procedure | 210 |
| DrawGlyphImage | procedure | 211 |
| DrawHeaderCell | procedure | 207 |
| DrawLabel | procedure | 218 |
| DrawListFrame | procedure | 203 |
| DrawMemo | procedure | 202 |
| DrawScrollBar | procedure | 205 |
| DrawSlider | procedure | 213 |
| DrawSpinBox | procedure | 214 |
| DrawSunken | procedure | 198 |
| DrawThickBorder | procedure | 199 |
| DrawThinBorder | procedure | 197 |
| DrawWindow | procedure | 219 |
| DropColors | procedure | 216 |
| FontSize | function | 192 |
| GlyphSize | function | 193 |
| Init | procedure | 200 |
| Palette | function | 224 |
| PostDrawSpinBox | procedure | 215 |
| TitleSize | function | 194 |
| TCupertinoTheme | class | 372 |
| ButtonHeight | function | 376 |
| CalcCloseRect | function | 398 |
| CaptionHeight | function | 375 |
| DrawButton | procedure | 391 |
| DrawCheckBox | procedure | 392 |
| DrawClose | procedure | 396 |
| DrawEdit | procedure | 383 |
| DrawHeaderCell | procedure | 389 |
| DrawListFrame | procedure | 385 |
| DrawMemo | procedure | 384 |
| DrawScrollBar | procedure | 387 |
| DrawSlider | procedure | 393 |
| DrawSpinBox | procedure | 394 |
| DrawWindow | procedure | 395 |
| FocusRing | procedure | 382 |
| FontSize | function | 379 |
| Init | procedure | 381 |
| Palette | function | 374 |
| ThumbSize | function | 377 |
| TitleSize | function | 380 |
| WindowRadius | function | 378 |
| TDesktopTheme | class | 272 |
| ButtonHeight | function | 279 |
| CalcColor | function | 303 |
| CalcSize | function | 304 |
| CaptionHeight | function | 278 |
| CheckCaption | procedure | 291 |
| CheckMark | procedure | 289 |
| CheckRect | function | 290 |
| DrawContainer | procedure | 301 |
| DrawGlyphButton | procedure | 297 |
| DrawGlyphImage | procedure | 298 |
| DrawLabel | procedure | 300 |
| GlyphSize | function | 295 |
| GripLines | procedure | 293 |
| HorzGradient | procedure | 288 |
| Init | procedure | 296 |
| LoadFonts | procedure | 294 |
| Palette | function | 277 |
| PostDrawSpinBox | procedure | 299 |
| Shade | function | 285 |
| SpinArrows | procedure | 292 |
| ThumbSize | function | 280 |
| VertGradient | procedure | 287 |
| WindowBorder | function | 283 |
| WindowRadius | function | 281 |
| TExperienceTheme | class | 309 |
| ButtonHeight | function | 313 |
| CalcCloseRect | function | 335 |
| CaptionHeight | function | 312 |
| DrawButton | procedure | 328 |
| DrawCheckBox | procedure | 329 |
| DrawClose | procedure | 333 |
| DrawEdit | procedure | 320 |
| DrawHeaderCell | procedure | 326 |
| DrawListFrame | procedure | 322 |
| DrawMemo | procedure | 321 |
| DrawScrollBar | procedure | 324 |
| DrawSlider | procedure | 330 |
| DrawSpinBox | procedure | 331 |
| DrawWindow | procedure | 332 |
| FontSize | function | 317 |
| Init | procedure | 319 |
| Palette | function | 311 |
| ThumbSize | function | 314 |
| TitleSize | function | 318 |
| WindowBorder | function | 316 |
| WindowRadius | function | 315 |
| TGraphiteTheme | class | 232 |
| CalcCloseRect | function | 266 |
| CalcColor | function | 264 |
| CalcSize | function | 265 |
| DrawButton | procedure | 248 |
| DrawCheckBox | procedure | 251 |
| DrawClose | procedure | 259 |
| DrawContainer | procedure | 260 |
| DrawEdit | procedure | 240 |
| DrawGlyphButton | procedure | 249 |
| DrawGlyphImage | procedure | 250 |
| DrawHeaderCell | procedure | 246 |
| DrawLabel | procedure | 257 |
| DrawListFrame | procedure | 242 |
| DrawMemo | procedure | 241 |
| DrawScrollBar | procedure | 244 |
| DrawSlider | procedure | 252 |
| DrawSpinBox | procedure | 253 |
| DrawWindow | procedure | 258 |
| DropColors | procedure | 255 |
| FontSize | function | 237 |
| GlyphSize | function | 238 |
| Init | procedure | 236 |
| Palette | function | 263 |
| PostDrawSpinBox | procedure | 254 |
| TitleSize | function | 239 |
| TVistaTheme | class | 340 |
| ButtonFace | procedure | 351 |
| ButtonHeight | function | 344 |
| CalcCloseRect | function | 367 |
| CaptionHeight | function | 343 |
| DrawButton | procedure | 360 |
| DrawCheckBox | procedure | 361 |
| DrawClose | procedure | 365 |
| DrawEdit | procedure | 352 |
| DrawHeaderCell | procedure | 358 |
| DrawListFrame | procedure | 354 |
| DrawMemo | procedure | 353 |
| DrawScrollBar | procedure | 356 |
| DrawSlider | procedure | 362 |
| DrawSpinBox | procedure | 363 |
| DrawWindow | procedure | 364 |
| FontSize | function | 348 |
| Init | procedure | 350 |
| Palette | function | 342 |
| ThumbSize | function | 345 |
| TitleSize | function | 349 |
| WindowBorder | function | 347 |
| WindowRadius | function | 346 |