mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-02 17:45:28 +00:00
use canonical module subfolder tree
This commit is contained in:
parent
80783d2ae4
commit
8969899a2f
24 changed files with 0 additions and 23 deletions
16
src/browser/main/tab/label/mod.rs
Normal file
16
src/browser/main/tab/label/mod.rs
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
mod pin;
|
||||
mod title;
|
||||
|
||||
use gtk::prelude::BoxExt;
|
||||
use gtk::Box;
|
||||
|
||||
pub fn new() -> Box {
|
||||
let label = Box::builder()
|
||||
.orientation(gtk::Orientation::Horizontal)
|
||||
.build();
|
||||
|
||||
label.append(&pin::new(false));
|
||||
label.append(&title::new());
|
||||
|
||||
label
|
||||
}
|
||||
8
src/browser/main/tab/label/pin/mod.rs
Normal file
8
src/browser/main/tab/label/pin/mod.rs
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
use gtk::Image;
|
||||
|
||||
pub fn new(visible: bool) -> Image {
|
||||
Image::builder()
|
||||
.icon_name("view-pin-symbolic")
|
||||
.visible(visible)
|
||||
.build()
|
||||
}
|
||||
10
src/browser/main/tab/label/title/mod.rs
Normal file
10
src/browser/main/tab/label/title/mod.rs
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
use gtk::Label;
|
||||
|
||||
pub fn new() -> Label {
|
||||
Label::builder()
|
||||
.label("New page")
|
||||
.ellipsize(gtk::pango::EllipsizeMode::End)
|
||||
.width_chars(16)
|
||||
.single_line_mode(true)
|
||||
.build()
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue