Recent

Author Topic: TyControls: a custom-drawn UI control suite with a CSS-like theme engine  (Read 529 times)

ACTom

  • Newbie
  • Posts: 5
Hello everyone,

I'd like to introduce TyControls v2.2.0 — a suite of custom-drawn UI controls for Lazarus/LCL, now available in the Online Package Manager. Everything is rendered with BGRABitmap and driven by a lightweight, CSS-like theme engine, so the whole set supports dark and light modes out of the box and keeps a consistent modern look across widgetsets.

What's included
- Styled versions of the everyday controls: buttons, labels, edits, memos, spin edits, check boxes, radio buttons, toggle switches, combo boxes, list boxes, panels, group boxes, progress bars, track bars, scroll bars, splitters, status bars, tool bars, and menus (menu bar + popup).
- Tabbed controls (PageControl / TabSheet / TabSet), a virtual TreeView, and a calendar + date/time picker.
- A borderless-window control with a custom title bar, for modern-looking forms.
- A full set of styled dialogs: message, input, password, text, value/path pickers, color, font, find, replace and progress.
- A styler component that can also apply the theme to standard LCL controls.

Theming — the CSS-like engine lets you switch dark/light (or your own scheme) centrally; every control follows the active theme automatically.

License — Modified LGPL (same as FPC/LCL), so it's fine for commercial projects.

Compatibility (tested)
- Lazarus: 4.0, 4.2, 4.4–4.8, and current trunk
- FPC: 3.2.2 and trunk
- Widgetsets: Win64, Cocoa, GTK2, Qt5, Qt6

Installation — in the Lazarus IDE open Package → Online Package Manager, find TyControls, and install. Source and issue tracker: https://github.com/ACTom/TyControls

Thanks, and I hope you find it useful!
ACTom

ACTom

  • Newbie
  • Posts: 5
Some themes.

fcu

  • Full Member
  • ***
  • Posts: 131
very nice , thanks for sharing
i find maybe a bug

ACTom

  • Newbie
  • Posts: 5
very nice , thanks for sharing
i find maybe a bug
Aha, this bug is quite interesting. I'll fix it along with others in the next version. 
The control is still in a relatively early stage of development, so there should be quite a few minor bugs.

Antek

  • New Member
  • *
  • Posts: 15
This looks really impressive!

Quote
- A borderless-window control with a custom title bar, for modern-looking forms

Using the "Demo" program I was not able to resize the app (right/buttom)

Using the "Dialogs" program  I was able to resize the app but there is graphical problem with client area?!

I think this is because of TTyTitleBar (doing some "form(window) drawing stuff")

Also using windows, the"Snap-Features" are not available (e.g.throwing the window to the right)

Win11 24h2 / Laz4.8-fpc3.2.2 /32bit 96dpi
 
best

Antek

  • New Member
  • *
  • Posts: 15
second anim

 

TinyPortal © 2005-2018