]> git.0d.be Git - jack_mixer.git/commit
Channel strip UI layout and code improvements (#68)
authorChristopher Arndt <SpotlightKid@users.noreply.github.com>
Wed, 14 Oct 2020 21:56:06 +0000 (23:56 +0200)
committerGitHub <noreply@github.com>
Wed, 14 Oct 2020 21:56:06 +0000 (23:56 +0200)
commita3bc4a4fecc733b4a927c791ed7db301216e8c1c
treed7467c38736bc93a03811f6a600e209880869140
parent45fd7de29428f39ca7a934205e38362a5c8a7a19
Channel strip UI layout and code improvements (#68)

* Overhaul channel fader/meter layout:
  * Put value readout/edit entry and peak value readout next to each other
    above the fader and meter. When channels are shrunk, they are displayed
    one under the other.
  * Add tick marks for left/center/right on balance slider
    and add tooltip displaying left/right value. This also
    changes the appearance of slider handle depending on theme.
  * Convert occurences of `Gtk.HBox` and `Gtk.VBox` to `Gtk.Box`.
  * Remove `Gtk.Frame`s from layout and set border style via CSS where needed.
* You can now shrink the width of input *and* output channels and it also
  reduces the width of the meter display.
* On project load, give input focus to fader of last added channel and deselect
  volume entry widget.
* Some code reorganization and cleanup in `abspeak`, `channel`, and `meter`
  module:
  * Refactor channel strip UI creation to reduce DRY.
  * Use `super()` instead of directly accessing the super-class where
    appropriate
  * Unify `widen` and `narrow` `Channel` methods.
  * Remove outdated size request handling methods in `MeterWidget`.
  * Style context getter for `AbspeakWidget` returns context for wrapped label
    widget.

Fixes: #67
Signed-off-by: Christopher Arndt <chris@chrisarndt.de>
abspeak.py
channel.py
jack_mixer.py
meter.py
slider.py