On 2011-12-12 07:54, Andrej Mitrovic wrote:
On 12/7/11, Andrej Mitrovic<andrej.mitrov...@gmail.com> wrote:
That's what the theming API is for on Windows. OSX might have
something similar. Harmonia uses the theming API, for OSX/Linux you
can take a look at Qt and how they skin their widgets.
By theming API I mean Visual Styles on Windows. A simple example is
online here:
https://github.com/AndrejMitrovic/DWinProgramming/tree/master/Samples/Extra/VisualStyles
(run via rdmd ..\..\..\build.d "%CD%")
You can also fetch a hit test clip of a control to figure out which
part of your theme-drawn control is clickable.
I don't know whether OSX has something similar.
Mac OS X comes bundled with two themes, Blue and Graphite. I know there
are applications available to provides more themes, don't know if they
work with the latest versions of Mac OS X though.
--
/Jacob Carlborg