Emil Ernerfeldt
620e43d483
New sleeker visual style
...
Remove a lot of borders, remove transparency, simplify and unify.
2021-01-15 22:23:08 +01:00
Emil Ernerfeldt
b1157ee642
[grid] Option to set spacing
2021-01-15 21:17:56 +01:00
Emil Ernerfeldt
480c6db37f
[grid] Set default row height to interact_size.y
...
It is what we use for horizontal layouts, and makes sense.
2021-01-15 21:17:56 +01:00
Emil Ernerfeldt
03c9cda89b
[grid] Ensure the contents of each grid cell is aligned left+center
2021-01-15 21:17:56 +01:00
Emil Ernerfeldt
641a302e0a
[grid] Add optional minimal row height
2021-01-15 18:30:09 +01:00
Emil Ernerfeldt
6f814b9516
[demo] Add collapsing header to widget gallery
2021-01-15 18:30:09 +01:00
Emil Ernerfeldt
73d16eb771
Use Grid to add labels to the color picker sliders
...
Also improve the color preview in the color picker
2021-01-13 23:09:23 +01:00
Emil Ernerfeldt
6d8a766614
[style] Slightly expand buttons when hovering and interacting
2021-01-13 22:08:35 +01:00
Emil Ernerfeldt
5e7ad40c8d
[demo] Center the "(source code)" hyperlinks
2021-01-11 23:50:50 +01:00
Emil Ernerfeldt
1c5cdd8575
[demo] Add separator, hyperlink and SelectableLabel to widget gallery
2021-01-11 21:07:17 +01:00
Emil Ernerfeldt
0b10fa5c29
Grid layout and widget gallery ( #106 )
...
* Wrap Layout and Region into a new struct Placer
* [egui] Add a simple grid layout
* Refactor CollapsingHeader code (simplify header painting)
* Fix: allow putting a CollapsingHeader inside of a grid layout
* [demo] Add a widget gallery
Closes https://github.com/emilk/egui/issues/88
* Add optional striped grid background
2021-01-11 20:58:36 +01:00
Emil Ernerfeldt
d0c3bd0d8f
[demo] Persist which demo windows are open
2021-01-10 21:00:17 +01:00
Emil Ernerfeldt
26d576f510
Break out mod paint into new crate epaint
2021-01-10 15:42:46 +01:00
Emil Ernerfeldt
fb2317c993
Rename PaintCmd
to Shape
2021-01-10 11:43:01 +01:00
Emil Ernerfeldt
a0b0f36d29
Move egui/math into new crate emath
2021-01-10 11:37:47 +01:00
Emil Ernerfeldt
d895285482
[demo] Window options window: add checkbox to toggle close button
2021-01-10 10:43:49 +01:00
Emil Ernerfeldt
e105719d34
[demo] Add test of pixel perfect rendering to color test
2021-01-07 19:25:39 +01:00
Emil Ernerfeldt
5ef9f35d1e
[epi] Simplify TextureAllocator interface
2021-01-07 16:29:58 +01:00
Emil Ernerfeldt
b4871e2aef
Add ui.allocate_at_least and ui.allocate_exact_size
2021-01-06 11:03:29 +01:00
Emil Ernerfeldt
69d31a5e47
[eframe] Make persistence, http and time optional features
...
Saves on compile times.
2021-01-04 10:25:13 +01:00
Emil Ernerfeldt
10a23d18e1
Support additive colors in color picker
2021-01-03 18:16:12 +01:00
Emil Ernerfeldt
cbe0de83ee
Add a window options demo
2021-01-03 00:12:54 +01:00
Emil Ernerfeldt
a905c884e8
Add widget egui::reset_button
2021-01-02 23:28:10 +01:00
Emil Ernerfeldt
029a85c1fc
Move Color32 constants from mod color
to struct Color32
2021-01-02 17:18:41 +01:00
Emil Ernerfeldt
64dd186daf
Deprecate color::srgba function. Use Color32::from_rgb etc instead.
2021-01-02 17:06:26 +01:00
Emil Ernerfeldt
73f3d8cf46
Rename Srgba to Color32
2021-01-02 17:02:18 +01:00
Emil Ernerfeldt
1690db0f0c
demo tweaks
2021-01-02 12:00:14 +01:00
Emil Ernerfeldt
b3d1016507
[demo] Move backend into an optional panel of WrapApp
2021-01-02 01:01:01 +01:00
Emil Ernerfeldt
3e0bedd96d
[demo] Move color test to WrapApp
2021-01-02 00:13:34 +01:00
Emil Ernerfeldt
4848c171eb
[demo] Move Fractal Clock to WrapApp
2021-01-02 00:12:45 +01:00
Emil Ernerfeldt
b1022d01c1
Rename epi::App::ui to epi::App::update
2021-01-01 20:22:18 +01:00
Emil Ernerfeldt
defad4ed51
Merge example_web into egui_demo_lib
2021-01-01 17:11:05 +01:00