Add slider for adjusting scope trace brightness

This makes it easier for users to discover the feature and see the
current brightness.
This commit is contained in:
Lawrence Lee
2020-10-11 12:29:47 -07:00
parent 992a5ad3d9
commit e93c4f6ed4
5 changed files with 109 additions and 15 deletions

View File

@@ -720,6 +720,23 @@ flowboxchild:selected {
margin: 0;
}
/* Vertical version of slider. */
#histScale {
min-height: 4em;
min-width: 0.4166666666666666em;
margin: 0.5833333333333333em 0 0 0;
}
#histScale trough {
padding: 0.583333333333333333em 0;
}
#histScale trough highlight {
margin: -0.583333333333333333em 0;
padding: 0.1em 0 0 0.1em;
}
#histScale.fine-tune trough highlight {
padding: 0.5em 0 0 0.5em;
}
/* Copied from button.flat style. */
button.radio#histButton {
background-image: none;

View File

@@ -453,6 +453,27 @@ filechooser placessidebar list row:selected {
padding-bottom: 0.25em;
margin: 0;
}
/* Vertical version of slider. */
#histScale {
min-height: 4em;
min-width: 1.833333333333333333em;
margin: -0.333333333333333333em 0;
}
#histScale trough {
padding: 0.583333333333333333em 0;
}
#histScale highlight {
background-image: linear-gradient(to right, shade (@accent-color2,1.22), shade(@accent-color2,.88));
margin: -0.583333333333333333em 0;
padding: 0.333333333333333333em 0 0 0.333333333333333333em;
}
#histScale slider {
}
#histScale.fine-tune highlight {
padding: 0.5em 0 0 0.5em;
}
/* Copied from button.flat style. */
button.radio#histButton {
border: 0.083333333333333333em solid transparent;