feat(css): add style for TextView and generic css
Generic CSS includes styles for text_view.css and info_bar.css
This commit is contained in:
parent
269b30312d
commit
23bfd10e2b
|
@ -0,0 +1,2 @@
|
|||
@import url("info_bar.css");
|
||||
@import url("text_view.css");
|
|
@ -9,7 +9,8 @@ use gtk::{
|
|||
|
||||
pub fn load_css() {
|
||||
let style_provider = CssProvider::new();
|
||||
style_provider.load_from_path(Path::new("./src/view/styles/info_bar.css"));
|
||||
|
||||
style_provider.load_from_path(Path::new("./src/view/styles/base.css"));
|
||||
|
||||
style_context_add_provider_for_display(
|
||||
&Display::default().expect("Could not connect to a display"),
|
||||
|
|
|
@ -0,0 +1,14 @@
|
|||
textview {
|
||||
border-radius: 5px;
|
||||
padding: 5px;
|
||||
background: #E6E6E6;
|
||||
outline-offset: 2px;
|
||||
outline: 2px solid #81ABDF00;
|
||||
transition-duration: .15s;
|
||||
transition-timing-function: ease-in-out;
|
||||
}
|
||||
|
||||
textview:focus-within {
|
||||
outline-offset: -2px;
|
||||
outline: 2px solid #81ABDF;
|
||||
}
|
Loading…
Reference in New Issue