ui: move sidebar toggle button to left side next to back button
This commit is contained in:
@@ -324,6 +324,9 @@ pub fn reading_view(
|
|||||||
if ui.button("← 返回").on_hover_text("返回书架").clicked() {
|
if ui.button("← 返回").on_hover_text("返回书架").clicked() {
|
||||||
action.go_back = true;
|
action.go_back = true;
|
||||||
}
|
}
|
||||||
|
if ui.button("☰").on_hover_text("打开/关闭目录").clicked() {
|
||||||
|
*sidebar_open = !*sidebar_open;
|
||||||
|
}
|
||||||
ui.separator();
|
ui.separator();
|
||||||
ui.label(format!("《{}》", &book.title));
|
ui.label(format!("《{}》", &book.title));
|
||||||
ui.label(format!("[{}]", book.layout.label()));
|
ui.label(format!("[{}]", book.layout.label()));
|
||||||
@@ -390,9 +393,6 @@ pub fn reading_view(
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
if ui.button("☰").on_hover_text("打开/关闭目录").clicked() {
|
|
||||||
*sidebar_open = !*sidebar_open;
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user