|
1 | 1 | use std::fmt::Display; |
2 | 2 |
|
3 | 3 | use crate::icons::ArrowIcon; |
4 | | -use crate::theme::get_theme; |
5 | 4 | use dioxus::prelude::*; |
6 | 5 | use freya_elements::elements as dioxus_elements; |
7 | 6 | use freya_elements::events::keyboard::Key; |
8 | 7 | use freya_elements::events::{KeyboardEvent, MouseEvent}; |
| 8 | + |
9 | 9 | use freya_hooks::{ |
10 | | - theme_with, use_focus, use_platform, ArrowIconThemeWith, DropdownItemThemeWith, DropdownTheme, |
11 | | - DropdownThemeWith, |
| 10 | + theme_with, use_applied_theme, use_focus, use_platform, ArrowIconThemeWith, |
| 11 | + DropdownItemThemeWith, DropdownTheme, DropdownThemeWith, |
12 | 12 | }; |
13 | 13 | use winit::window::CursorIcon; |
14 | 14 |
|
|
49 | 49 | T: PartialEq + 'static, |
50 | 50 | { |
51 | 51 | let selected = use_shared_state::<T>(cx).unwrap(); |
52 | | - let theme = get_theme!(cx, &cx.props.theme, dropdown_item); |
| 52 | + let theme = use_applied_theme!(cx, &cx.props.theme, dropdown_item); |
53 | 53 | let focus = use_focus(cx); |
54 | 54 | let status = use_state(cx, DropdownItemStatus::default); |
55 | 55 | let platform = use_platform(cx); |
@@ -180,7 +180,7 @@ where |
180 | 180 | { |
181 | 181 | use_shared_state_provider(cx, || cx.props.value.clone()); |
182 | 182 | let selected = use_shared_state::<T>(cx).unwrap(); |
183 | | - let theme = get_theme!(cx, &cx.props.theme, dropdown); |
| 183 | + let theme = use_applied_theme!(cx, &cx.props.theme, dropdown); |
184 | 184 | let focus = use_focus(cx); |
185 | 185 | let status = use_state(cx, DropdownStatus::default); |
186 | 186 | let opened = use_state(cx, || false); |
|
0 commit comments