1
0
Fork 0
mirror of https://github.com/Zedfrigg/ironbar.git synced 2025-08-18 07:11:04 +02:00

feat(music): ability to truncate button text

Adds new `truncate.mode` and `truncate.length` options, and `truncate` shorthand for mode.

Resolves #56.
This commit is contained in:
Jake Stanger 2023-01-28 21:55:27 +00:00
parent 012762e102
commit 8691824db1
No known key found for this signature in database
GPG key ID: C51FC8F9CB0BEA61
3 changed files with 75 additions and 11 deletions

View file

@ -1,6 +1,7 @@
use crate::config::CommonConfig;
use crate::modules::{Module, ModuleInfo, ModuleUpdateEvent, ModuleWidget, WidgetContext};
use crate::script::{OutputStream, Script, ScriptMode};
use crate::try_send;
use color_eyre::{Help, Report, Result};
use gtk::prelude::*;
use gtk::Label;
@ -8,7 +9,6 @@ use serde::Deserialize;
use tokio::spawn;
use tokio::sync::mpsc::{Receiver, Sender};
use tracing::error;
use crate::try_send;
#[derive(Debug, Deserialize, Clone)]
pub struct ScriptModule {