This commit is contained in:
Ward Nakchbandi (Cosmic Fusion) 2023-07-01 02:02:18 +03:00
parent 0b15737950
commit 3535fb2f3a
3 changed files with 3 additions and 4 deletions

View File

@ -9,6 +9,7 @@ install:
chmod 755 $(DESTDIR)/usr/bin/pika-drivers chmod 755 $(DESTDIR)/usr/bin/pika-drivers
mkdir -p $(DESTDIR)/usr/lib/pika/drivers/ mkdir -p $(DESTDIR)/usr/lib/pika/drivers/
cp data/*.sh $(DESTDIR)/usr/lib/pika/drivers/ cp data/*.sh $(DESTDIR)/usr/lib/pika/drivers/
cp data/*.css $(DESTDIR)/usr/lib/pika/drivers/
chmod 755 $(DESTDIR)/usr/lib/pika/drivers/*.sh chmod 755 $(DESTDIR)/usr/lib/pika/drivers/*.sh
mkdir -p $(DESTDIR)/usr/share/applications mkdir -p $(DESTDIR)/usr/share/applications
mkdir -p $(DESTDIR)/usr/share/icons/hicolor/scalable/apps mkdir -p $(DESTDIR)/usr/share/icons/hicolor/scalable/apps

View File

@ -1,3 +0,0 @@
#! /bin/bash
zenity --error --text "There was a problem installing the following driver: "$1""

View File

@ -8,7 +8,7 @@ fn main() {
application.connect_startup(|app| { application.connect_startup(|app| {
// The CSS "magic" happens here. // The CSS "magic" happens here.
let provider = CssProvider::new(); let provider = CssProvider::new();
provider.load_from_data(include_str!("style.css")); provider.load_from_data(include_str!("/usr/lib/pika/drivers/style.css"));
// We give the CssProvided to the default screen so the CSS rules we added // We give the CssProvided to the default screen so the CSS rules we added
// can be applied to our window. // can be applied to our window.
gtk::style_context_add_provider_for_display( gtk::style_context_add_provider_for_display(
@ -182,6 +182,7 @@ fn build_ui(app: &Application) {
.margin_bottom(12) .margin_bottom(12)
.margin_start(12) .margin_start(12)
.margin_end(12) .margin_end(12)
.has_frame(false)
.child(&driver_button_icon) .child(&driver_button_icon)
.build(); .build();