make eye button public
Signed-off-by: kernelkind <kernelkind@gmail.com>
This commit is contained in:
@@ -157,7 +157,7 @@ fn login_textedit<'a>(
|
|||||||
text_edit
|
text_edit
|
||||||
}
|
}
|
||||||
|
|
||||||
fn eye_button(ui: &mut egui::Ui, is_visible: bool) -> egui::Response {
|
pub fn eye_button(ui: &mut egui::Ui, is_visible: bool) -> egui::Response {
|
||||||
let is_dark_mode = ui.visuals().dark_mode;
|
let is_dark_mode = ui.visuals().dark_mode;
|
||||||
let icon = if is_visible && is_dark_mode {
|
let icon = if is_visible && is_dark_mode {
|
||||||
app_images::eye_dark_image()
|
app_images::eye_dark_image()
|
||||||
|
|||||||
Reference in New Issue
Block a user