summaryrefslogtreecommitdiffstats
path: root/style/src/theme.rs (unfollow)
Commit message (Collapse)AuthorFilesLines
2024-03-07Move `Theme` type to `iced_core`Libravatar Héctor Ramón Jiménez1-221/+0
2024-03-06Simplify theming for `Application`Libravatar Héctor Ramón Jiménez1-45/+0
2024-03-06Use `Style` struct pattern instead of trait for all widgetsLibravatar Héctor Ramón Jiménez1-3/+0
2024-03-06Simplify theming for `PickList`, `ComboBox`, and `Menu` widgetsLibravatar Héctor Ramón Jiménez1-108/+0
2024-03-06Simplify theming for `PaneGrid` widgetLibravatar Héctor Ramón Jiménez1-65/+1
2024-03-06Simplify theming for `TextEditor` widgetLibravatar Héctor Ramón Jiménez1-121/+0
2024-03-06Simplify theming for `Svg` widgetLibravatar Héctor Ramón Jiménez1-47/+0
2024-03-06Simplify theming for `Toggler` widgetLibravatar Héctor Ramón Jiménez1-70/+0
2024-03-05Simplify theming for `Rule` widgetLibravatar Héctor Ramón Jiménez1-43/+0
2024-03-05Simplify theming for `ProgressBar` widgetLibravatar Héctor Ramón Jiménez1-56/+0
2024-03-05Simplify theming for `Radio` widgetLibravatar Héctor Ramón Jiménez1-56/+0
2024-03-05Move style types of `slider` to `iced_widget`Libravatar Héctor Ramón Jiménez1-38/+0
2024-03-05Simplify theming for `QRCode` widgetLibravatar Héctor Ramón Jiménez1-41/+0
2024-03-05Simplify theming for `TextInput` widgetLibravatar Héctor Ramón Jiménez1-125/+0
2024-03-05Simplify theming for `Scrollable` widgetLibravatar Héctor Ramón Jiménez1-87/+0
2024-03-05Simplify theming for `Container` widgetLibravatar Héctor Ramón Jiménez1-54/+1
2024-03-05Simplify theming for `Checkbox` widgetLibravatar Héctor Ramón Jiménez1-151/+0
2024-03-04Simplify theming for `Button` widgetLibravatar Héctor Ramón Jiménez1-122/+1
2024-03-04Simplify theming for `Text` widgetLibravatar Héctor Ramón Jiménez1-26/+1
2024-03-04Try new approach to theming for `Slider`Libravatar Héctor Ramón Jiménez1-78/+30
2024-02-12Simplify `scrollable` styling APILibravatar Héctor Ramón Jiménez1-56/+21
2024-02-12Introduce an appearance for a scrollable, ability to customize the scrollbar ↵Libravatar dtzxporter1-0/+14
gap. Update scrollable.rs
2024-02-11Add Kanagawa, Moonfly, Nightfly, Oxocarbon themesLibravatar Var Bhat1-0/+36
2024-02-11add tokyo night themes and palettesLibravatar Var Bhat1-0/+18
Source: https://github.com/enkia/tokyo-night-vscode-theme
2024-02-11add catppuccin themesLibravatar Var Bhat1-0/+26
2024-02-10Use custom `Application::style` to enable transparencyLibravatar Héctor Ramón Jiménez1-8/+9
2024-02-09Styling for QR Code using theme frameworkLibravatar Clark Moody1-0/+41
2024-02-07add border widths to toggler stylesheetLibravatar Giuliano Bellini s2947391-2/+4
2024-02-03Capitalize theme names in docs of `Theme`Libravatar Héctor Ramón Jiménez1-6/+6
2024-02-03Use `Theme::ALL` for theme selector in `styling` exampleLibravatar Héctor Ramón Jiménez1-3/+13
2024-02-03Add Dracula, Nord, Solarized and Grubvox variants to `Theme`Libravatar Var Bhat1-0/+30
2024-02-01Use strong background for `Secondary` checkbox accentLibravatar Héctor Ramón Jiménez1-2/+2
2024-02-01Introduce support for disabling a `checkbox`Libravatar Alexander van Saase1-2/+38
2024-01-20Add `Shadow` to `container::Appearance`Libravatar Héctor Ramón Jiménez1-1/+2
2024-01-20Introduce `Border` struct analogous to `Shadow`Libravatar Héctor Ramón Jiménez1-56/+72
2024-01-10Add `Theme` selector to `layout` exampleLibravatar Héctor Ramón Jiménez1-6/+30
2024-01-10Add basic controls to `layout` exampleLibravatar Héctor Ramón Jiménez1-0/+6
2023-12-12added svg hover, for styles implLibravatar hicaru1-0/+8
2023-11-14Remove unnecessary `self` in `iced_style::theme`Libravatar Héctor Ramón Jiménez1-1/+1
2023-11-14Added support for custom shader widget for iced_wgpu backend.Libravatar Bingus1-1/+1
2023-09-20Fix `clippy::default_trait_access`Libravatar Héctor Ramón Jiménez1-3/+3
2023-09-12Draft `Editor` API and `TextEditor` widgetLibravatar Héctor Ramón Jiménez1-0/+113
2023-09-03Introduce `theme::Custom::with_fn` to generate completely custom themesLibravatar Héctor Ramón Jiménez1-5/+22
2023-06-01Change default styling of `Slider` to leverage rounded bordersLibravatar Héctor Ramón Jiménez1-2/+2
2023-06-01Add border_radius to slider railLibravatar Casper Storm1-1/+2
2023-05-23Extend border radius on relevant widgetsLibravatar Casper Storm1-18/+18
2023-05-21Support conversion from Fn trait to custom themeLibravatar Marien Zwart1-12/+16
...instead of just from function pointers. I'm making this change not because I actually want to pass a closure, but to make passing a single fixed function work. This commit also simplifies the scrollable example slightly, and without the other half of this change that simplified example fails to compile with: ``` error[E0277]: the trait bound `iced::theme::ProgressBar: From<for<'a> fn(&'a Theme) -> iced::widget::progress_bar::Appearance {progress_bar_custom_style}>` is not satisfied --> examples/scrollable/src/main.rs:292:28 | 292 | .style(progress_bar_custom_style) | ----- ^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `From<for<'a> fn(&'a Theme) -> iced::widget::progress_bar::Appearance {progress_bar_custom_style}>` is not implemented for `iced::theme::ProgressBar` | | | required by a bound introduced by this call | = help: the trait `From<for<'a> fn(&'a Theme) -> iced::widget::progress_bar::Appearance>` is implemented for `iced::theme::ProgressBar` = note: required for `for<'a> fn(&'a Theme) -> iced::widget::progress_bar::Appearance {progress_bar_custom_style}` to implement `Into<iced::theme::ProgressBar>` note: required by a bound in `iced::widget::ProgressBar::<Renderer>::style` --> /home/marienz/src/iced/widget/src/progress_bar.rs:77:21 | 77 | style: impl Into<<Renderer::Theme as StyleSheet>::Style>, | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `ProgressBar::<Renderer>::style` ``` This happens because `progress_bar_custom_style` by itself is a function item, which is typically coerced to a function pointer when one is needed, but not in this case. It is possible to work around this on the caller's side, but especially since the compiler diagnostic for this is a bit rough (see https://github.com/rust-lang/rust/issues/100116) let's try to make it work out of the box.
2023-05-19Change name of hovered region style struct, reorder lines & export AppearanceLibravatar Joao Freitas1-2/+2
2023-05-19Implement `custom` helper for `theme::Button`Libravatar Héctor Ramón Jiménez1-0/+9
2023-05-19Remove `Builder` abstractions for gradientsLibravatar Héctor Ramón Jiménez1-3/+3