Skip to content

Commit

Permalink
a majority of source code is no longer within src
Browse files Browse the repository at this point in the history
  • Loading branch information
Redhawk18 committed Sep 25, 2023
1 parent 3cfa659 commit c352bb9
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 18 deletions.
1 change: 0 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ name: Build
on:
push:
branches: [ '**' ]
paths: src/**

jobs:
release:
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ If youre operating system needs additional packages please create a pull request
<summary>OpenSuse</summary>

```
sudo zypper install atkmm-devel gdk-pixbuf-devel gdk-pixbuf-xlib-devel glib2-devel gtk3-devel harfbuzz-devel ncurses5-devel pkg-config rustup
sudo zypper install atkmm-devel gdk-pixbuf-devel gdk-pixbuf-xlib-devel glib2-devel gtk3-devel harfbuzz-devel pkg-config rustup
```
</details>

Expand Down
31 changes: 15 additions & 16 deletions gui/src/widgets/pane_grid.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,10 @@ use iced::{
widget::{
button,
pane_grid::{Axis, Content, Pane, PaneGrid, TitleBar},
row, text, horizontal_space,
row,
text, //horizontal_space,
},
Alignment, Length,
Alignment, //Length,
};
use iced_aw::graphics::icons::{icon_to_char, Icon};
use slotmap::{DefaultKey, SlotMap};
Expand All @@ -35,21 +36,19 @@ pub(crate) fn pane_grid<'a>(

fn title_bar(active: bool, pane: Pane) -> TitleBar<'static, Message, Renderer> {
TitleBar::new(
row!(
//horizontal_space(Length::Fill),
button(
text(icon_to_char(Icon::ChevronDoubleRight).to_string())
.font(iced_aw::ICON_FONT)
)
.on_press(Message::PaneSplit(Axis::Vertical, pane)),
button(
text(icon_to_char(Icon::ChevronDoubleDown).to_string())
.font(iced_aw::ICON_FONT)
)
.on_press(Message::PaneSplit(Axis::Horizontal, pane)),
button(text(icon_to_char(Icon::X).to_string()).font(iced_aw::ICON_FONT))
.on_press(Message::PaneClosed(pane)),
row!(
//horizontal_space(Length::Fill),
button(
text(icon_to_char(Icon::ChevronDoubleRight).to_string()).font(iced_aw::ICON_FONT)
)
.on_press(Message::PaneSplit(Axis::Vertical, pane)),
button(
text(icon_to_char(Icon::ChevronDoubleDown).to_string()).font(iced_aw::ICON_FONT)
)
.on_press(Message::PaneSplit(Axis::Horizontal, pane)),
button(text(icon_to_char(Icon::X).to_string()).font(iced_aw::ICON_FONT))
.on_press(Message::PaneClosed(pane)),
)
.align_items(Alignment::Center),
)
.style(Container::PaneGridTitleBar(active))
Expand Down

0 comments on commit c352bb9

Please sign in to comment.