Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions nmrs-gui/src/ui/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ pub mod wired_page;

use gtk::prelude::*;
use gtk::{
Application, ApplicationWindow, Box as GtkBox, Label, Orientation, ScrolledWindow, Spinner,
Stack, STYLE_PROVIDER_PRIORITY_USER,
pango::EllipsizeMode, Application, ApplicationWindow, Box as GtkBox, Label, Orientation,
ScrolledWindow, Spinner, Stack, STYLE_PROVIDER_PRIORITY_USER,
};
use std::cell::Cell;
use std::rc::Rc;
Expand Down Expand Up @@ -54,6 +54,9 @@ pub fn build_ui(app: &Application) {

let vbox = GtkBox::new(Orientation::Vertical, 0);
let status = Label::new(None);
status.set_xalign(0.0);
status.set_ellipsize(EllipsizeMode::End);
status.set_max_width_chars(36);
let list_container = GtkBox::new(Orientation::Vertical, 0);
let stack = Stack::new();
let is_scanning = Rc::new(Cell::new(false));
Expand Down