Commit Graph

38 Commits

Author SHA1 Message Date
Emil Ernerfeldt 0f0e385ea3 [refactor] collect stuff into new `mod paint` 2020-05-19 22:28:57 +02:00
Emil Ernerfeldt 8f43d38e38 Style/visuals tweaks 2020-05-17 17:44:29 +02:00
Emil Ernerfeldt 037b22be7f Simplify and improve the default visual style 2020-05-17 10:21:45 +02:00
Emil Ernerfeldt 3860807e29 Use premultiplied alpha for all colors + improve painting of thin lines 2020-05-11 17:57:11 +02:00
Emil Ernerfeldt 3a1d677840 refactor interact style 2020-05-10 08:55:41 +02:00
Emil Ernerfeldt 2bd610cb5b Fix dubplicate itmes in Style menu 2020-05-08 22:48:08 +02:00
Emil Ernerfeldt fa82e8d806 Rename Region to Ui (shorter, sweeter) 2020-05-08 22:42:31 +02:00
Emil Ernerfeldt e317f697c0 Small fixes and added TODOs 2020-05-08 21:31:27 +02:00
Emil Ernerfeldt 87e3aacf35 enforce and fix a bunch of clippy issues 2020-05-07 10:47:03 +02:00
Emil Ernerfeldt 6aadf4128e Refactor: pass Rect:s by value (cleaner) 2020-05-05 19:12:00 +02:00
Emil Ernerfeldt 5ac39d9643 Better handling of forcibly trying to shink something that can't be 2020-05-01 10:02:53 +02:00
Emil Ernerfeldt b73fbb33d8 Improve size negotiation code.
Better enfocred minimum sizes.
You can now have windows that expand to fit their content.
2020-05-01 02:08:01 +02:00
Emil Ernerfeldt 14db237b1d Basic text input support 2020-04-29 21:25:49 +02:00
Emil Ernerfeldt fbedc2e9ab Add scroll bars to windows.
Auto-hide scroll bars when not needed

Bug fixes:
 * collapsing headers animation
 * clip rect interactions
 * clip rects for scroll areas
2020-04-26 22:30:24 +02:00
Emil Ernerfeldt 663fbda90c Use min..=max syntax for slider ranges 2020-04-25 11:01:57 +02:00
Emil Ernerfeldt a66f4efaac Minor code cleanup and clippy fixes 2020-04-24 18:47:14 +02:00
Emil Ernerfeldt fd8180cea4 Fix left alignment of widgets and tweak style slightly 2020-04-23 00:23:29 +02:00
Emil Ernerfeldt 700c93b8e3 Add Rect left/right/top/bottom accessors 2020-04-22 19:38:38 +02:00
Emil Ernerfeldt d941c5830d Unify style for buttons and collapsing headers 2020-04-22 19:03:38 +02:00
Emil Ernerfeldt d70ae351c1 Rename foldable to CollapsingHeader and move to own file 2020-04-22 19:03:33 +02:00
Emil Ernerfeldt 4efbb94e1b Various small improvements 2020-04-21 20:48:31 +02:00
Emil Ernerfeldt e9bdadb1da Some visual tweaks 2020-04-21 16:50:56 +02:00
Emil Ernerfeldt 0ed578341b Add time as input to emigui to enable animations 2020-04-21 14:46:42 +02:00
Emil Ernerfeldt ed67cc6e59 Nicer looking indent regions with a gray vertical line 2020-04-21 10:28:25 +02:00
Emil Ernerfeldt 388132ba93 Implement window resizing 2020-04-19 23:44:24 +02:00
Emil Ernerfeldt 2170081221 Use new type Pos2 for positions (points) instead of Vec2 2020-04-19 01:05:49 +02:00
Emil Ernerfeldt 1d3836ba80 Add rudimentary support for gui windows that you can move around 2020-04-17 14:26:36 +02:00
Emil Ernerfeldt d999962602 Refactor example code 2020-04-12 12:07:51 +02:00
Emil Ernerfeldt 1d6bc3baba Minor API improvements 2019-04-25 18:07:36 +02:00
Emil Ernerfeldt 192b59ebb0 Refactor: remove GuiCmd 2019-03-11 15:59:49 +01:00
Emil Ernerfeldt 87288634e9 Refactor: Merge LayoutOptions and Style 2019-03-11 15:39:54 +01:00
Emil Ernerfeldt 7cbf8e45bc Nicer looking colors and sliders 2019-03-11 15:30:32 +01:00
Emil Ernerfeldt f0c879b2f4 Code cleanup: allow None mouse_pos + clippy fixes 2019-02-10 15:30:48 +01:00
Emil Ernerfeldt 7f83876005 Enable colored text (and other misc fixes) 2019-01-16 09:28:43 -06:00
Emil Ernerfeldt 2c0ca77e09 Add support for alignment (min, center, max) in horizontal and vertical layouts 2019-01-15 04:50:30 -06:00
Emil Ernerfeldt 3f84836c20 Add rect field to InteractInfo struct 2019-01-15 04:48:05 -06:00
Emil Ernerfeldt ca9333ec3e Support multiple fonts 2019-01-13 00:55:56 +01:00
Emil Ernerfeldt 8963a99a09 Rename to Emigui 2019-01-12 23:07:30 +01:00