Emil Ernerfeldt
9578773613
[style] tweak style, and refactor struct Style
4 years ago
Emil Ernerfeldt
a76d57480d
fix: menu bar should have a background
4 years ago
Emil Ernerfeldt
d8e0b3bff6
[color] add HSV-based color picker for `struct Srgba`
4 years ago
Emil Ernerfeldt
fc3582fbe1
[color] add HSVA conversion
4 years ago
Emil Ernerfeldt
847f18248f
clippy fix
4 years ago
Emil Ernerfeldt
a9fd7537c2
[DragValue] add optional range
4 years ago
Emil Ernerfeldt
938c847c6e
[math] bug fix: allow inverted range in remap_clamp
4 years ago
Emil Ernerfeldt
c26b3069e0
Fix a clippy nit
4 years ago
Markus Webel
6b30e21f4e
Kinetic scrolling ( #20 )
* Fixed typo in function description
* Added vertical kinetic scrolling
* Checked off kinetic scrolling from TODO
Co-authored-by: Markus Webel <m@rkus.online>
4 years ago
Emil Ernerfeldt
6ca11aff8c
[refactor] use "fg_" prefix in WidgetStyle
4 years ago
Emil Ernerfeldt
8b93135fe4
[style] you can override the default body text style
4 years ago
Emil Ernerfeldt
2c96cbfa9c
[dependencies] turn off optional ahash features to reduce dependencies
4 years ago
Emil Ernerfeldt
dc40a5d31d
[refactor] represent colors with arrays
4 years ago
Emil Ernerfeldt
9823e4d63c
[refactor] Add Triangles::colored_vertex helper
4 years ago
Emil Ernerfeldt
e8713bbb71
[widgets] DragValue can now be used with some integers
4 years ago
Emil Ernerfeldt
ecd68f4faa
[refactor] combine stroke_color and stroke_width in WidgetStyle
4 years ago
Emil Ernerfeldt
9d4021d703
[refactor] rename LineStyle to Stroke
4 years ago
Emil Ernerfeldt
e7b098ac56
[style] make the default style a lot more compact and sleek
4 years ago
Emil Ernerfeldt
2129a87575
[tesselator] handle paths with duplicated points better
4 years ago
Emil Ernerfeldt
62b1a2658f
[tesselator] hide Path from view and improve thin rounded rectangles
4 years ago
Emil Ernerfeldt
96153a86e5
[refactor] Remove Option wrappers around colors and line styles
Just use transparency instead of None
4 years ago
Emil Ernerfeldt
413ed6999e
[refactor] break up Style into Spacing, Interaction and Visuals
Also make sliders fixed-width
4 years ago
Emil Ernerfeldt
fe50f39590
[demo] toggle_switch.rs source demo for how to create your own widget
4 years ago
Emil Ernerfeldt
c0876eff90
[refactor] better names for widget style members
4 years ago
Emil Ernerfeldt
24003b17a3
[animation] add Context::animate_bool helper function
4 years ago
Emil Ernerfeldt
c23dfd155c
[refactor] unify `InteractInfo` and `GuiResponse` to `Response`
4 years ago
Emil Ernerfeldt
843074eb7d
cargo update
4 years ago
Emil Ernerfeldt
a395b385b7
build new web demo
4 years ago
Emil Ernerfeldt
3160c44a4b
Move TODO-list to own TODO.md
4 years ago
Emil Ernerfeldt
8f1def11f1
[slider] remove ": " for sliders without text. still show value
4 years ago
Emil Ernerfeldt
f7122abc5d
[slider] fix vertical alignment of text
4 years ago
Emil Ernerfeldt
1d350ad15b
[painter] add helper functions for drawing lines, circles and rectangles
4 years ago
Emil Ernerfeldt
c27e53a7b2
[color] Rename Color to Srgba + sRGBA correct fading of thin lines
Also remove the extra large `aa_size` hack,
so everything now looks slightly crispier.
I also took the opportunity to tweak some colors.
4 years ago
Emil Ernerfeldt
2465e689fb
[demo] additional window resize demo with embedded scroll
4 years ago
Emil Ernerfeldt
1a9618c524
spelling
4 years ago
Emil Ernerfeldt
3a3eb5ef5d
Fix minor bug in mouse velocity tracking
4 years ago
Emil Ernerfeldt
f1989c39c6
input: keep using the latest known pixels_per_point
4 years ago
Emil Ernerfeldt
3d3b93da8b
Force user to explicitly select a max height for a ScrollArea
4 years ago
Emil Ernerfeldt
5df9bfd514
Add ui.drag_angle helper
4 years ago
Emil Ernerfeldt
d4c0197752
add ui.horizontal_centered helper
4 years ago
Emil Ernerfeldt
7b75bd2d09
Use consistent order of width/color arguments for line style
4 years ago
Emil Ernerfeldt
b3b4fbc016
[slider] only show full precision if significant
4 years ago
Emil Ernerfeldt
cc22e2fbb4
[slider] when editing slider or drag-value, keep text edit box small
4 years ago
Emil Ernerfeldt
7cfa792a89
[interact] bug fix: fix drags sometimes being interpreted as clicks
4 years ago
Emil Ernerfeldt
d07132cc13
[demo] bug fix: add back clock in upper right corner
4 years ago
Emil Ernerfeldt
1f8d3a699f
[egui_glium] sRGBA: blend vertex colors in linear space
4 years ago
Emil Ernerfeldt
3d7b5ea6fe
[egui_web] sRGBA: blend vertex colors in linear space
4 years ago
Emil Ernerfeldt
d5a1385870
[demo] disable name clash demo, since it is not working anyway
4 years ago
Emil Ernerfeldt
a2160a5e12
fix some corner cases for repaint requests
4 years ago
Emil Ernerfeldt
0755a95c76
Update README.md
4 years ago