Add complete keyboard navigation.
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
use crate::components::keyboard;
|
||||
use iced::widget::button;
|
||||
use iced::widget::text::Shaping;
|
||||
use iced::widget::{Column, Space, button, container, row, svg, text};
|
||||
use iced::widget::{Column, Space, container, row, svg, text};
|
||||
use iced::{Background, Border, Color, Element, Length, Theme};
|
||||
|
||||
use bds_core::i18n::UiLocale;
|
||||
@@ -148,7 +150,7 @@ pub fn view(
|
||||
};
|
||||
|
||||
items.push(
|
||||
button(label)
|
||||
keyboard::button(label)
|
||||
.on_press(Message::SwitchProject(id))
|
||||
.padding([4, 8])
|
||||
.width(Length::Fill)
|
||||
@@ -170,7 +172,7 @@ pub fn view(
|
||||
|
||||
// Open and create project actions
|
||||
items.push(
|
||||
button(
|
||||
keyboard::button(
|
||||
row![
|
||||
text("↗")
|
||||
.size(14)
|
||||
@@ -190,7 +192,7 @@ pub fn view(
|
||||
);
|
||||
|
||||
items.push(
|
||||
button(
|
||||
keyboard::button(
|
||||
row![
|
||||
text("+")
|
||||
.size(14)
|
||||
@@ -256,7 +258,7 @@ pub fn trigger_button(project_name: &str) -> Element<'static, Message> {
|
||||
.shaping(Shaping::Advanced)
|
||||
.color(Color::from_rgb(0.55, 0.55, 0.60));
|
||||
|
||||
button(
|
||||
keyboard::button(
|
||||
row![folder_icon, name, chevron]
|
||||
.spacing(4)
|
||||
.align_y(iced::Alignment::Center),
|
||||
|
||||
Reference in New Issue
Block a user