🎨 Split ContactsWindow component + use of dioxus-free-icons
This commit is contained in:
44
src/main.rs
44
src/main.rs
@@ -1,6 +1,7 @@
|
||||
#![allow(non_snake_case)]
|
||||
use dioxus::prelude::*;
|
||||
use dioxus_desktop::Config;
|
||||
|
||||
use sir::{global_css, AppStyle};
|
||||
|
||||
pub mod app_settings;
|
||||
@@ -8,7 +9,7 @@ pub mod components;
|
||||
pub mod matrix_client;
|
||||
|
||||
use crate::app_settings::AppSettings;
|
||||
use crate::components::control_window::ControlWindow;
|
||||
use crate::components::contacts_window::ContactWindow;
|
||||
use crate::components::login::Login;
|
||||
|
||||
mod base;
|
||||
@@ -27,9 +28,42 @@ fn App(cx: Scope<AppSettings>) -> Element {
|
||||
font-family: Tahoma, sans-serif;
|
||||
}
|
||||
#main {
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
}"
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.aero-button {
|
||||
height: 50%;
|
||||
min-height: 16px;
|
||||
aspect-ratio: 1;
|
||||
background-color: transparent;
|
||||
border: 2px solid transparent;
|
||||
background-size: contain !important;
|
||||
margin-right: 1%;
|
||||
}
|
||||
.aero-button:hover {
|
||||
border-image: url(./images/aerobutton_border.png) 2 round;
|
||||
}
|
||||
.aero-button:active {
|
||||
border-image: url(./images/aerobutton_border_down.png) 2 round;
|
||||
}
|
||||
|
||||
.button {
|
||||
height: 50%;
|
||||
min-height: 16px;
|
||||
aspect-ratio: 1;
|
||||
background-color: transparent;
|
||||
border: 2px solid transparent;
|
||||
background-size: contain !important;
|
||||
margin-right: 1%;
|
||||
}
|
||||
.button:hover {
|
||||
border-image: url(./images/button_border.png) 2 round;
|
||||
}
|
||||
.button:active {
|
||||
border-image: url(./images/button_border_down.png) 2 round;
|
||||
}
|
||||
"
|
||||
);
|
||||
|
||||
// let window = dioxus_desktop::use_window(cx);
|
||||
@@ -39,7 +73,7 @@ fn App(cx: Scope<AppSettings>) -> Element {
|
||||
cx.render(rsx! {
|
||||
AppStyle {},
|
||||
// Login {}
|
||||
ControlWindow {}
|
||||
ContactWindow {}
|
||||
})
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user