Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
MoAlyousef committed Oct 8, 2021
1 parent 62ea813 commit ae12ce2
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 8 deletions.
17 changes: 9 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -153,13 +153,6 @@ You can check the frames example to see all `FrameType`'s you can apply to you w
## Widget Schemes

These provide schemes for widgets without color theming. Currently there are 6 schemes:
- Aqua: Tries to mimic the modern MacOS's styles.
- ![alt_test](screenshots/aqua_scheme.jpg)

- Fluent: Tries to mimic Window's 10 styles.
- ![alt_test](screenshots/fluent.jpg)
- ![alt_test](screenshots/fluent2.jpg)

- Clean: Taken from NTK's clear scheme.
- ![alt_test](screenshots/clean.jpg)

Expand All @@ -169,6 +162,14 @@ These provide schemes for widgets without color theming. Currently there are 6 s
- Gleam: Taken from NTK's gleam scheme.
- ![alt_test](screenshots/gleam.jpg)

- Aqua: Tries to mimic the modern MacOS's styles.
- ![alt_test](screenshots/aqua_scheme.jpg)
- ![alt_test](screenshots/aqua_scheme2.jpg)

- Fluent: Tries to mimic Window's 10 styles.
- ![alt_test](screenshots/fluent.jpg)
- ![alt_test](screenshots/fluent2.jpg)

- SvgBased: This overrides FLTK's Base scheme round/rounded/oval FrameTypes which are drawn using scalable vector graphics.
- ![alt_test](screenshots/svgbased.jpg)

Expand All @@ -177,6 +178,6 @@ These provide schemes for widgets without color theming. Currently there are 6 s
The crate also provides colors, namely html colors and aqua colors.
The aqua colors are provided as lazy_static values and are named after the cocoa NSColor properties (such as windowBackgroundColor, systemBlueColor, controlAccentColor...etc). The html colors are provided in a lazy_static HashMap and can be accessed by their [html names](https://www.w3schools.com/tags/ref_colornames.asp).

- ![alt_test](screenshots/html_colors)
- ![alt_test](screenshots/html_colors.jpg)

Colors and Color themes can also be used with widget schemes or even in a regular fltk-rs application.
1 change: 1 addition & 0 deletions examples/fluent.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ fn main() {
let mut btn = button::Button::new(220, 220, 80, 30, "Hello");
btn.set_frame(OS_DEFAULT_BUTTON_UP_BOX);
btn.set_down_frame(OS_DEFAULT_DEPRESSED_DOWN_BOX);
// handle hover
btn.handle(|b, ev| match ev {
Event::Enter => {
b.set_frame(OS_HOVERED_UP_BOX);
Expand Down
1 change: 1 addition & 0 deletions examples/fluent_dark.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ fn main() {
let mut btn = button::Button::new(220, 220, 80, 30, "Hello");
btn.set_frame(OS_DEFAULT_BUTTON_UP_BOX);
btn.set_down_frame(OS_DEFAULT_DEPRESSED_DOWN_BOX);
// handle hover
btn.handle(|b, ev| match ev {
Event::Enter => {
b.set_frame(OS_HOVERED_UP_BOX);
Expand Down
Binary file added screenshots/aqua_scheme2.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit ae12ce2

Please sign in to comment.