Change elapsed time into button

This commit is contained in:
Rafostar
2020-10-07 23:10:11 +02:00
parent 4c5d922d47
commit 43a54920ef
4 changed files with 54 additions and 27 deletions

View File

@@ -65,6 +65,31 @@ class ClapperIconToggleButton extends IconButton
}
});
var LabelButton = GObject.registerClass(
class ClapperLabelButton extends CustomButton
{
_init(text)
{
super._init({
margin_start: 0,
margin_end: 0,
});
this.customLabel = new Gtk.Label({
label: text,
single_line_mode: true,
});
this.customLabel.add_css_class('labelbutton');
this.set_child(this.customLabel);
}
set_label(text)
{
this.customLabel.set_text(text);
}
});
var PopoverButton = GObject.registerClass(
class ClapperPopoverButton extends IconButton
{