-
Notifications
You must be signed in to change notification settings - Fork 210
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1863 from KomodoPlatform/drag_selector_invisible_…
…light Fix: Drag selector does not fit with the theme
- Loading branch information
Showing
3 changed files
with
43 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,48 @@ | ||
import QtQuick 2.15 | ||
import QtQuick.Controls 2.15 | ||
|
||
import "../Constants" | ||
import App 1.0 | ||
import Dex.Themes 1.0 as Dex | ||
|
||
Slider | ||
{ | ||
id: control | ||
value: 0.5 | ||
opacity: enabled ? 1 : .5 | ||
|
||
background: Rectangle | ||
{ | ||
x: control.leftPadding | ||
y: control.topPadding + control.availableHeight / 2 - height / 2 | ||
implicitWidth: 200 | ||
implicitHeight: 4 | ||
width: control.availableWidth | ||
height: implicitHeight | ||
radius: 2 | ||
color: Dex.CurrentTheme.rangeSliderDistanceColor | ||
|
||
DexSlider { | ||
Rectangle | ||
{ | ||
width: control.visualPosition * parent.width | ||
height: parent.height | ||
color: Dex.CurrentTheme.rangeSliderBackgroundColor | ||
radius: 2 | ||
} | ||
} | ||
|
||
handle: Rectangle | ||
{ | ||
x: control.leftPadding + control.visualPosition * (control.availableWidth - width) | ||
y: control.topPadding + control.availableHeight / 2 - height / 2 | ||
implicitWidth: 26 | ||
implicitHeight: 26 | ||
radius: 13 | ||
gradient: Gradient | ||
{ | ||
orientation: Gradient.Horizontal | ||
GradientStop { position: 0.125; color: Dex.CurrentTheme.rangeSliderIndicatorBackgroundStartColor } | ||
GradientStop { position: 0.925; color: Dex.CurrentTheme.rangeSliderIndicatorBackgroundEndColor } | ||
} | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.