Commit Graph

96 Commits

Author SHA1 Message Date
Juha
c3891ad820 Reduce compiler warnings. 2023-07-03 06:23:49 +03:00
Juha
1475336c8c Remove LCLProc.OffsetRect(). Move some functions from LCLProc to GraphMath (LazUtils). 2023-06-05 15:48:01 +03:00
Juha
bd40a6028e LCL: Remove a redundant test in TThemeServices.DrawElement. 2023-04-29 19:44:23 +03:00
Juha
c14934764c LCL: Call TThemeServices.GetDetailSizeForPPI with proper arguments. Revert 1138d26280. 2023-04-27 17:23:33 +03:00
Juha
1138d26280 LCL: Remove "deprecated" directive from function TThemeServices.GetDetailSize. It uses a sane PPI default value. 2023-04-22 22:29:43 +03:00
Ondrej Pokorny
1163a2fcea LCL themes: GetDetailSizeForPPI & GetDetailSizeForWindow 2022-11-16 00:44:52 +01:00
Ondrej Pokorny
7e92650038 LCL: TThemeServices.GetStockImage overload with Width&Height 2022-10-02 11:32:17 +02:00
Niel Buys
e13e0f11f5 Fix TTabControl background color #25468 2022-02-24 16:14:17 +02:00
juha
9219ea531d Move unit GraphMath from LCL to LazUtils. It has no dependencies to GUI.
git-svn-id: trunk@64303 -
2020-12-29 22:56:40 +00:00
zeljko
6e55b572be Themes: teEdit can be disabled too.
git-svn-id: trunk@62220 -
2019-11-10 12:44:54 +00:00
juha
383cc68489 LCL: Implement TreeView DisabledFontColor. Issue #35628, patch from Alexey Tor.
git-svn-id: trunk@61294 -
2019-05-27 09:39:54 +00:00
ondrej
e58e0a48d1 LCL: themes: high-DPI DrawIcon
git-svn-id: trunk@57929 -
2018-05-13 21:25:07 +00:00
ondrej
9b8424c65b LCL: themes: use original constants
git-svn-id: trunk@57754 -
2018-05-01 09:04:13 +00:00
ondrej
8490f66838 LCL: grids: use theme sort arrows
git-svn-id: trunk@57751 -
2018-05-01 08:26:45 +00:00
juha
a48b727337 LCL: Fix a comment saying that Graphics could not be used in unit Themes.
git-svn-id: trunk@57276 -
2018-02-08 23:43:21 +00:00
ondrej
de5ec9a11d lcl: themes: High-DPI: scale default (hard-coded) detail sizes. Solves issue #31557 on Qt+Gtk2
git-svn-id: trunk@54439 -
2017-03-18 07:58:07 +00:00
michl
72427c9f1b LCL: ThemeServices: draw better themed disabled text
git-svn-id: trunk@53915 -
2017-01-10 16:15:35 +00:00
ondrej
b769322f40 lcl: themes: add TThemeOption.toUseGlyphEffects. Use it for TToolButton, TSpeedButton, TBitBtn, TButtonGlyph
git-svn-id: trunk@50962 -
2015-12-21 05:37:05 +00:00
ondrej
25cfeb51ee lcl: toolbutton: fix paint arrow for tbsButtonDrop (was outside the visual button bounds)
git-svn-id: trunk@50932 -
2015-12-19 12:45:09 +00:00
ondrej
540bd3a671 lcl: toolbar: add DropDownWidth property
git-svn-id: trunk@50900 -
2015-12-18 10:13:17 +00:00
ondrej
a511b3e510 LCL: default theme text drawing remove offset from pushed text. Neither win32 nor Gtk2 do that. Needed for consequent painting of glyph and text.
git-svn-id: trunk@50895 -
2015-12-18 09:29:35 +00:00
zeljko
8bec6e28de Themes: fixed memleak with dotted brush bitmap.part of issue #27559
git-svn-id: trunk@48048 -
2015-02-28 12:33:45 +00:00
juha
d6ba979d0c LCL: Fix font.color on WinXP theme ttItemHot elements. Reverts faulty r46740 #bccb960c29. Issue #26981, patch from Andrey Zubarev.
git-svn-id: trunk@46743 -
2014-11-03 11:16:34 +00:00
juha
bccb960c29 LCL: Fix font.color on theme ttItemHot elements. Issue #26981, patch from Andrey Zubarev.
git-svn-id: trunk@46740 -
2014-11-01 20:58:43 +00:00
paul
9e0d1a452a lcl: implement small close button drawing with themes
git-svn-id: trunk@41845 -
2013-06-23 17:39:10 +00:00
paul
951d803183 lcl, win32: use GetTextExtent as suggested in MSDN to get the correct text bounds before use of DrawThemeText() (issue #0021964)
git-svn-id: trunk@41646 -
2013-06-10 05:58:07 +00:00
juha
93a55c46a9 LCL: Toolbutton tbsDropDown drawing problem. Issue #19600, patch from Samuel Herzog
git-svn-id: trunk@38099 -
2012-07-31 21:03:10 +00:00
paul
e3ef681580 lcl: extend TThemeServices.IsDisabled, IsHot, IsPushed for teCombobox
git-svn-id: trunk@36776 -
2012-04-14 16:08:21 +00:00
zeljko
534feafb8e LCL: Themes.DrawText() added DT_WORDBREAK and DT_END_ELLIPSIS.
git-svn-id: trunk@34028 -
2011-12-07 15:51:26 +00:00
juha
3d53dd6306 LCL: Fix Range Check errors on 64-bit system. Issue #20051, patch from Cyrax
git-svn-id: trunk@32053 -
2011-08-25 21:18:42 +00:00
mattias
597e60e8a7 LCL: broke unit dependency of graphics on controls
git-svn-id: trunk@31628 -
2011-07-09 23:10:27 +00:00
maxim
32de941260 LCL: removed custom drawn Close button icon, we have nicer default one
git-svn-id: trunk@31485 -
2011-07-01 09:52:31 +00:00
maxim
443af0046a LCL: fixed Close button glyph transparency (proper transparency mask should be assigned to HBitmap too), bug #19295
git-svn-id: trunk@31384 -
2011-06-25 14:35:34 +00:00
paul
a96a6545ba lcl: fix treeview plus/minus sign drawing with no themes
git-svn-id: trunk@30348 -
2011-04-17 13:17:14 +00:00
juha
0928ead547 LCL: Changed function ColorToRGB's return value to TColorRef. Many related changes around the code.
git-svn-id: trunk@29734 -
2011-03-06 12:45:59 +00:00
paul
3aace13834 lcl: fix TColor -> TColorRef assignments and vice versa
git-svn-id: trunk@29713 -
2011-03-03 08:35:06 +00:00
paul
5eaebdc1e4 lcl: fix TThemeServices.DrawText - correctly set SingleLine, Clipping attributes
git-svn-id: trunk@29647 -
2011-02-22 07:41:09 +00:00
paul
0317bfe926 lcl: add TThemeServices.GetDetailRegion
git-svn-id: trunk@29642 -
2011-02-22 06:45:31 +00:00
mattias
369aa3055c fixed typo dont
git-svn-id: trunk@27304 -
2010-09-11 14:05:21 +00:00
dmitry
8dc9238c17 lcl: changed default stock closebutton to draw the 1-pixel width cross
git-svn-id: trunk@26529 -
2010-07-08 16:33:04 +00:00
dmitry
17fa642a30 lcl: fix themes default idButtonClose stock image drawing
git-svn-id: trunk@26187 -
2010-06-19 12:47:41 +00:00
dmitry
c802efbd20 lcl: default idButtonClose theme drawing
git-svn-id: trunk@26088 -
2010-06-13 14:27:28 +00:00
paul
86b00d4f17 lcl: draw treeitem text using appropriate themed colors
git-svn-id: trunk@24877 -
2010-04-24 14:52:22 +00:00
paul
7f820b7f3f lcl: implement treeview item drawing for default theme manager
git-svn-id: trunk@24839 -
2010-04-23 00:24:27 +00:00
paul
4a4cdb8ee5 lcl: add treeview hot glyph drawing support to the theme services
git-svn-id: trunk@24813 -
2010-04-22 07:29:26 +00:00
paul
612a84b15e lcl: Add RTL support to the Themes DrawText function by zaher dirkey (issue #0014927)
git-svn-id: trunk@22320 -
2009-10-28 13:42:18 +00:00
paul
8f48f1eb62 lcl: add more menu parts to ThemeServices
git-svn-id: trunk@20596 -
2009-06-12 14:06:14 +00:00
paul
2e91396afd lcl: update tmschema content from 2 new header files from windows 7 sdk (tmshema.h is deprecated since vista at all)
git-svn-id: trunk@20568 -
2009-06-10 08:14:03 +00:00
paul
52202a4550 lcl: set default pushbuttonsize as 75x23 instead of 75x25
git-svn-id: trunk@20535 -
2009-06-09 03:10:41 +00:00
paul
8e3c500a4d lcl: move default TButtonPanel button constraints to the ThemeServices
git-svn-id: trunk@20214 -
2009-05-26 01:39:02 +00:00