]> git.0d.be Git - jack_mixer.git/commitdiff
Use alpha in color chooser; set default color to (0,0,0,0)
authorDaniel Sheeler <dsheeler@pobox.com>
Thu, 2 Jul 2020 08:48:17 +0000 (03:48 -0500)
committerDaniel Sheeler <dsheeler@pobox.com>
Thu, 2 Jul 2020 09:13:28 +0000 (04:13 -0500)
channel.py

index 223f66c5dc9ef286028daddfd89a17e8b0d6ce52..81a23a36287880e3fa1bf6c85bd27e7bfa460135 100644 (file)
@@ -1030,12 +1030,13 @@ class NewInputChannelDialog(NewChannelDialog):
 
 class OutputChannelPropertiesDialog(ChannelPropertiesDialog):
     def create_ui(self):
-        print("here")
         NewChannelDialog.create_ui(self)
 
         table = self.properties_table
         table.attach(Gtk.Label(label='Color'), 0, 1, 4, 5)
         self.color_chooser_button = Gtk.ColorButton()
+        self.color_chooser_button.set_use_alpha(True)
+        self.color_chooser_button.set_rgba(Gdk.RGBA(0, 0, 0, 0))
         table.attach(self.color_chooser_button, 1, 2, 4, 5)
 
         vbox = Gtk.VBox()