Changeset View
Changeset View
Standalone View
Standalone View
src/declarativeimports/plasmastyle/SpinBoxStyle.qml
Show All 14 Lines | |||||
15 | * You should have received a copy of the GNU Library General Public | 15 | * You should have received a copy of the GNU Library General Public | ||
16 | * License along with this program; if not, write to the | 16 | * License along with this program; if not, write to the | ||
17 | * Free Software Foundation, Inc., | 17 | * Free Software Foundation, Inc., | ||
18 | * 51 Franklin Street, Fifth Floor, Boston, MA 2.010-1301, USA. | 18 | * 51 Franklin Street, Fifth Floor, Boston, MA 2.010-1301, USA. | ||
19 | */ | 19 | */ | ||
20 | 20 | | |||
21 | import QtQuick 2.0 | 21 | import QtQuick 2.0 | ||
22 | import QtQuick.Controls.Styles 1.1 as QtQuickControlStyle | 22 | import QtQuick.Controls.Styles 1.1 as QtQuickControlStyle | ||
23 | import QtQuick.Controls.Private 1.0 as QtQuickControlsPrivate | ||||
23 | import QtQuick.Layouts 1.1 | 24 | import QtQuick.Layouts 1.1 | ||
24 | 25 | | |||
25 | import org.kde.plasma.core 2.0 as PlasmaCore | 26 | import org.kde.plasma.core 2.0 as PlasmaCore | ||
26 | import org.kde.plasma.extras 2.0 as PlasmaExtras | 27 | import org.kde.plasma.extras 2.0 as PlasmaExtras | ||
27 | import org.kde.plasma.components 2.0 as PlasmaComponents | 28 | import org.kde.plasma.components 2.0 as PlasmaComponents | ||
28 | 29 | | |||
29 | import "private" as Private | 30 | import "private" as Private | ||
30 | 31 | | |||
31 | QtQuickControlStyle.SpinBoxStyle { | 32 | QtQuickControlStyle.SpinBoxStyle { | ||
32 | id: styleRoot | 33 | id: styleRoot | ||
33 | 34 | | |||
34 | horizontalAlignment: Qt.AlignRight | 35 | horizontalAlignment: Qt.AlignRight | ||
35 | 36 | | |||
36 | textColor: theme.viewTextColor | 37 | textColor: theme.viewTextColor | ||
37 | selectionColor: theme.viewFocusColor | 38 | selectionColor: theme.viewFocusColor | ||
38 | selectedTextColor: theme.viewBackgroundColor | 39 | selectedTextColor: theme.viewBackgroundColor | ||
39 | 40 | | |||
40 | 41 | | |||
41 | renderType: Text.NativeRendering | 42 | renderType: QtQuickControlsPrivate.Settings.isMobile ? Text.QtRendering : Text.NativeRendering | ||
42 | 43 | | |||
43 | PlasmaCore.Svg { | 44 | PlasmaCore.Svg { | ||
44 | id: arrowSvg | 45 | id: arrowSvg | ||
45 | imagePath: "widgets/arrows" | 46 | imagePath: "widgets/arrows" | ||
46 | colorGroup: PlasmaCore.Theme.ButtonColorGroup | 47 | colorGroup: PlasmaCore.Theme.ButtonColorGroup | ||
47 | } | 48 | } | ||
48 | 49 | | |||
49 | incrementControl: PlasmaCore.SvgItem { | 50 | incrementControl: PlasmaCore.SvgItem { | ||
▲ Show 20 Lines • Show All 41 Lines • Show Last 20 Lines |