Recreate volume button from scratch

Create volume button with popover instead of using GTK provided volume button.

Creating new button with only needed elements is more efficient then removing unneeded items from pre-made volume button. This should also increase performance a little when changing volume, because now we generate new icon only when a change is needed. In pre-made button icon is regenerated on each volume change.
This commit is contained in:
Rafostar
2020-09-09 21:34:32 +02:00
parent 22e8e44316
commit ab11d52a68
4 changed files with 62 additions and 62 deletions

View File

@@ -53,8 +53,19 @@ scale marks {
/* Volume Scale */
.volumescale {
margin-left: 4px;
min-height: 180px;
}
.osd .volumescale {
margin: 6px;
margin-left: 10px;
min-height: 280px;
}
.volumescale marks label {
margin-right: 4px;
margin-top: -4px;
margin-bottom: -6px;
}
.osd .volumescale marks label {
margin-bottom: -8px;
}