mirror of
https://github.com/emilk/egui.git
synced 2026-08-29 04:40:03 -04:00
separator & checkbox style request fix
This commit is contained in:
@@ -70,9 +70,6 @@ impl Widget for Checkbox<'_> {
|
|||||||
|
|
||||||
// Get the widget style by reading the response from the previous pass
|
// Get the widget style by reading the response from the previous pass
|
||||||
let id = ui.next_auto_id();
|
let id = ui.next_auto_id();
|
||||||
let response: Option<Response> = ui.ctx().read_response(id);
|
|
||||||
let state = response.map(|r| r.widget_state()).unwrap_or_default();
|
|
||||||
|
|
||||||
let CheckboxStyle {
|
let CheckboxStyle {
|
||||||
check_size,
|
check_size,
|
||||||
checkbox_frame,
|
checkbox_frame,
|
||||||
|
|||||||
@@ -101,8 +101,6 @@ impl Widget for Separator {
|
|||||||
|
|
||||||
// Get the widget style by reading the response from the previous pass
|
// Get the widget style by reading the response from the previous pass
|
||||||
let id = ui.next_auto_id();
|
let id = ui.next_auto_id();
|
||||||
let response: Option<Response> = ui.ctx().read_response(id);
|
|
||||||
let state = response.map(|r| r.widget_state()).unwrap_or_default();
|
|
||||||
let SeparatorStyle {
|
let SeparatorStyle {
|
||||||
spacing: spacing_style,
|
spacing: spacing_style,
|
||||||
stroke,
|
stroke,
|
||||||
|
|||||||
Reference in New Issue
Block a user