Compare commits
No commits in common. "boh" and "master" have entirely different histories.
File diff suppressed because it is too large
Load Diff
32
Cargo.toml
32
Cargo.toml
|
|
@ -7,25 +7,20 @@ license = "GPLv3"
|
|||
|
||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||
[dependencies]
|
||||
# vte-rs = "^0.4"
|
||||
# vte-sys = "*"
|
||||
#gio = "*"
|
||||
#gio-sys = "*"
|
||||
# gtk = { version = "*", features = ["v3_22"] }
|
||||
# gdk-sys = "*"
|
||||
# gdk = "*"
|
||||
#gdk4 = "*"
|
||||
#pango = "*"
|
||||
# crossbeam-channel = "*"
|
||||
#glib = "*"
|
||||
#glib-sys = "*"
|
||||
vte-rs = "^0.3"
|
||||
vte-sys = "*"
|
||||
gio = "*"
|
||||
gio-sys = "*"
|
||||
gtk = { version = "*", features = ["v3_22"] }
|
||||
gdk-sys = "*"
|
||||
gdk = "*"
|
||||
pango = "*"
|
||||
crossbeam-channel = "*"
|
||||
glib = "*"
|
||||
glib-sys = "*"
|
||||
zbus = "1.0.0"
|
||||
zvariant = "*"
|
||||
# structopt = { version = "0.3.21", default_features = false }
|
||||
[dependencies.gtk]
|
||||
package = "gtk4"
|
||||
version = "^0.6.2"
|
||||
features = ["v4_10"]
|
||||
structopt = { version = "0.3.21", default_features = false }
|
||||
|
||||
# jsonrpc-ipc-server = "^14.0"
|
||||
# jsonrpc-derive = "*"
|
||||
|
|
@ -34,9 +29,6 @@ features = ["v4_10"]
|
|||
[[bin]]
|
||||
name = "waydrop"
|
||||
path = "src/main.rs"
|
||||
[[bin]]
|
||||
name = "asd"
|
||||
path = "src/asd.rs"
|
||||
|
||||
[[bin]]
|
||||
name = "waydrop-ctl"
|
||||
|
|
|
|||
20
src/main.rs
20
src/main.rs
|
|
@ -15,14 +15,15 @@
|
|||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
use gtk::gio;
|
||||
use gtk::glib;
|
||||
extern crate gio;
|
||||
extern crate gtk;
|
||||
extern crate vte;
|
||||
|
||||
use gio::prelude::*;
|
||||
use gtk::prelude::*;
|
||||
|
||||
use glib::clone;
|
||||
// use gtk4::SettingsExt;
|
||||
use gtk::SettingsExt;
|
||||
use std::env::args;
|
||||
use std::thread;
|
||||
|
||||
|
|
@ -35,7 +36,9 @@ use window_state::{FullScreenState, StateOperations, WindowPos, WindowState};
|
|||
|
||||
fn build_ui(application: >k::Application) {
|
||||
let window = gtk::ApplicationWindow::new(application);
|
||||
window.settings().set_gtk_enable_animations(false);
|
||||
if let Some(settings) = window.get_settings() {
|
||||
settings.set_property_gtk_enable_animations(false);
|
||||
}
|
||||
let w_state = WindowState::new_arc(WindowPos::Hidden, FullScreenState::NotFull);
|
||||
let w_state0 = w_state.clone();
|
||||
let w_state1 = w_state.clone();
|
||||
|
|
@ -46,10 +49,9 @@ fn build_ui(application: >k::Application) {
|
|||
let w_state6 = w_state.clone();
|
||||
let w_state7 = w_state.clone();
|
||||
|
||||
window.set_title(Some("Waydrop"));
|
||||
// window.border().set_left(0);ò
|
||||
let surf = window.surface();
|
||||
// window.move_(0, 0);
|
||||
window.set_title("Waydrop");
|
||||
window.set_border_width(0);
|
||||
window.move_(0, 0);
|
||||
//window.maximize();
|
||||
window.set_position(gtk::WindowPosition::None);
|
||||
window.set_type_hint(gdk::WindowTypeHint::Dock);
|
||||
|
|
@ -234,7 +236,7 @@ fn build_ui(application: >k::Application) {
|
|||
//tabs::focus_tab_corrente(&nb);
|
||||
rx.attach(None, move |cmd| {
|
||||
let tira_su = || {
|
||||
window_state::bring_up(&window, &w_state3, gtk4::get_current_event_time());
|
||||
window_state::bring_up(&window, &w_state3, gtk::get_current_event_time());
|
||||
};
|
||||
use wake_listener::RpcCommand::*;
|
||||
match cmd {
|
||||
|
|
|
|||
|
|
@ -45,7 +45,7 @@ pub fn build_tab(
|
|||
// .expect("errore css");
|
||||
// sty.add_provider(&css, 10000);
|
||||
|
||||
let font = pango::FontDescription::from_string("Iosevka Regular 14");
|
||||
let font = pango::FontDescription::from_string("Iosevka Regular 13");
|
||||
vte.set_font(Some(&font));
|
||||
let gio_cancellable = gio::Cancellable::get_current();
|
||||
let shell = shell.unwrap_or(vec![var("SHELL").unwrap_or("/bin/sh".to_string())]);
|
||||
|
|
@ -101,8 +101,8 @@ pub fn build_tab(
|
|||
// Setto colori terminale
|
||||
use glib::translate::ToGlibPtr;
|
||||
use std::str::FromStr;
|
||||
let fg = gdk::RGBA::from_str("#002d38").unwrap_or(gdk::RGBA::white());
|
||||
let bg = gdk::RGBA::from_str("#f1e9d2").unwrap_or(gdk::RGBA::black());
|
||||
let fg = gdk::RGBA::from_str("#65657b7b8383").unwrap_or(gdk::RGBA::white());
|
||||
let bg = gdk::RGBA::from_str("#fdfdf6f6e3e3").unwrap_or(gdk::RGBA::black());
|
||||
let palette = (&[
|
||||
"#070736364242",
|
||||
"#dcdc32322f2f",
|
||||
|
|
|
|||
Loading…
Reference in New Issue