mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-07 12:16:42 +01:00
labels and icons
This commit is contained in:
parent
3e748fefa7
commit
eb0547dc37
6 changed files with 19 additions and 18 deletions
|
|
@ -28,7 +28,8 @@ impl ArrangementCommand {
|
|||
if clip.is_none() {
|
||||
//app.clip_auto_create();
|
||||
*clip = Some(Arc::new(RwLock::new(MidiClip::new(
|
||||
"", false, 384, None, Some(ItemTheme::random())
|
||||
&format!("t{track:02}s{scene:02}"),
|
||||
false, 384, None, Some(ItemTheme::random())
|
||||
))));
|
||||
}
|
||||
clip.as_ref().map(|c|c.into())
|
||||
|
|
|
|||
|
|
@ -329,9 +329,9 @@ pub trait ClipsView:
|
|||
for (scene_index, scene, ..) in self.scenes_with_sizes() {
|
||||
let (name, theme): (Arc<str>, ItemTheme) = if let Some(Some(clip)) = &scene.clips.get(track_index) {
|
||||
let clip = clip.read().unwrap();
|
||||
(clip.name.clone(), clip.color)
|
||||
(format!(" ⏹ {}", &clip.name).into(), clip.color)
|
||||
} else {
|
||||
(" ---- ".into(), ItemTheme::G[32])
|
||||
(" ⏹ -- ".into(), ItemTheme::G[32])
|
||||
};
|
||||
let fg = theme.lightest.rgb;
|
||||
let mut outline = theme.base.rgb;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue