Fix bos-settings compile errors and use REGISTRY_TOKEN for publishing
bos-settings was scaffolded but never compiled. Fixes: - main.rs: import gtk4::prelude (connect_activate/run) - window.rs: disambiguate WidgetExt::display(); drop unused GBox import - hyprland.rs: Label has no set_monospace -> use the monospace CSS class - theme.rs: drop unused prelude import Also switch package.yml to secrets.REGISTRY_TOKEN (scoped write:package), since the auto Actions token is not authorized for the owner registry.
This commit is contained in:
parent
b34217d869
commit
a71ecdcd0b
7 changed files with 39 additions and 5 deletions
|
|
@ -2,6 +2,8 @@ mod config;
|
|||
mod theme;
|
||||
mod ui;
|
||||
|
||||
use gtk4::prelude::*;
|
||||
|
||||
fn main() {
|
||||
let app = gtk4::Application::builder()
|
||||
.application_id("com.breadway.bos-settings")
|
||||
|
|
|
|||
|
|
@ -1,4 +1,3 @@
|
|||
use gtk4::prelude::*;
|
||||
use gtk4::CssProvider;
|
||||
|
||||
const CSS: &str = r#"
|
||||
|
|
|
|||
|
|
@ -50,7 +50,7 @@ pub fn build() -> GBox {
|
|||
for mon in &monitors {
|
||||
let lbl = Label::new(Some(mon));
|
||||
lbl.set_xalign(0.0);
|
||||
lbl.set_monospace(true);
|
||||
lbl.add_css_class("monospace");
|
||||
vbox.append(&lbl);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
use gtk4::prelude::*;
|
||||
use gtk4::{Application, ApplicationWindow, Box as GBox, Orientation, Paned, Stack};
|
||||
use gtk4::{Application, ApplicationWindow, Orientation, Paned, Stack};
|
||||
|
||||
use super::sidebar;
|
||||
use super::views;
|
||||
|
|
@ -12,7 +12,7 @@ pub fn build_ui(app: &Application) {
|
|||
.default_height(640)
|
||||
.build();
|
||||
|
||||
crate::theme::load(&window.display());
|
||||
crate::theme::load(&WidgetExt::display(&window));
|
||||
|
||||
let hpaned = Paned::new(Orientation::Horizontal);
|
||||
hpaned.set_position(190);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue