Andreas Kling
d76b2d0baa
LibGUI: Use widget override cursors in ColorInput
2020-09-11 14:51:02 +02:00
Andreas Kling
b4f307f982
LibGUI+WindowServer: Rename window "override cursor" to just "cursor"
...
Let's just say each window has a cursor, there's not really overriding
going on.
2020-09-11 14:26:37 +02:00
Andreas Kling
0f9be82826
LibGfx: Move StandardCursor enum to LibGfx
...
This enum existed both in LibGUI and WindowServer which was silly and
error-prone.
2020-09-10 19:25:13 +02:00
Andreas Kling
116cf92156
LibGfx: Rename Rect,Point,Size => IntRect,IntPoint,IntSize
...
This fits nicer with FloatRect,FloatPoint,FloatSize and gives a much
better visual clue about what type of metric is being used.
2020-06-10 10:59:04 +02:00
Andreas Kling
cdbc252190
LibGUI: Require a full click on ColorInput's color rect to open picker
...
Let's not open the ColorPicker on mousedown, that was too jarring.
2020-04-29 19:17:40 +02:00
Andreas Kling
f8069418e1
LibGUI: Transfer "color has alpha channel" state
2020-04-29 16:22:09 +02:00
Andreas Kling
c7107385ee
LibGUI: Allow disabling the alpha channel in ColorInput widgets
2020-04-29 15:33:36 +02:00
Andreas Kling
bc305a16ae
LibGUI: Allow editing ColorInput widgets as text
...
You can now enter a specific color as #rrggbb instead of clicking your
way through the color picker.
If you still want the color picker, just click the little color rect in
the widget and we'll bring up a ColorPicker. For a visual cue that this
rect is interactive, we use a hover hand cursor when hovering the rect.
2020-04-29 15:30:01 +02:00
Andreas Kling
033a4aee50
LibGUI: Remove copy-pasted auto-repeat logic from ColorInput
...
This was copy-pasted from button classes and not useful here.
2020-04-29 14:38:19 +02:00
Hüseyin ASLITÜRK
bc323c488e
LibGUI: Add ColorInput component
...
ColorInput is a new GUI component for selecting color using ColorPicker dialog.
It is simplify usage of ColorPicker dialog and more elegant view of current selected color.
2020-04-10 11:25:49 +02:00