mirror of
https://github.com/YGGverse/Yoda.git
synced 2025-01-15 09:10:08 +00:00
define margin in components
This commit is contained in:
parent
ab51b23f7c
commit
f0e36e711d
@ -13,8 +13,6 @@ use gtk::{
|
||||
};
|
||||
use std::rc::Rc;
|
||||
|
||||
const MARGIN: i32 = 6;
|
||||
|
||||
pub struct Find {
|
||||
pub close: Button,
|
||||
pub entry: Entry,
|
||||
|
@ -1,6 +1,7 @@
|
||||
use super::MARGIN;
|
||||
use gtk::{gdk::Cursor, Button};
|
||||
|
||||
const MARGIN: i32 = 6;
|
||||
|
||||
pub fn new() -> Button {
|
||||
Button::builder()
|
||||
.cursor(&Cursor::from_name("default", None).unwrap())
|
||||
|
@ -1,9 +1,10 @@
|
||||
use super::MARGIN;
|
||||
use gtk::{
|
||||
prelude::{EditableExt, EntryExt},
|
||||
Entry, EntryIconPosition,
|
||||
};
|
||||
|
||||
const MARGIN: i32 = 6;
|
||||
|
||||
pub fn new() -> Entry {
|
||||
// Init widget
|
||||
let entry = Entry::builder()
|
||||
|
@ -1,10 +1,10 @@
|
||||
mod back;
|
||||
mod forward;
|
||||
|
||||
use gtk::{prelude::BoxExt, Box, Button, Orientation, TextIter};
|
||||
use std::{cell::Cell, rc::Rc};
|
||||
|
||||
use super::MARGIN;
|
||||
use gtk::{prelude::BoxExt, Box, Button, Orientation, TextIter};
|
||||
const MARGIN: i32 = 6;
|
||||
|
||||
pub struct Navigation {
|
||||
pub back: Button,
|
||||
|
Loading…
x
Reference in New Issue
Block a user