-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Changed how Toolbuttons look when they are hovered over, to be closer…
… to the QT3 theme
- Loading branch information
Showing
15 changed files
with
82 additions
and
6,739 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,3 +1,5 @@ | ||
if(ENABLE_QSTYLE) | ||
add_subdirectory(QStyle) | ||
endif() | ||
|
||
add_subdirectory(QML) |
Empty file.
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 |
---|---|---|
@@ -0,0 +1,41 @@ | ||
import QtQuick | ||
import QtQuick.Templates as T | ||
|
||
T.Button { | ||
id: control | ||
|
||
implicitwidth: implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset, | ||
implicitContentWidth + leftPadding + rightPadding) | ||
implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset, | ||
implicitContentHeight + topPadding + bottomPadding) | ||
flat: false | ||
|
||
hoverEnabled: Qt.styleHints.useHoverEffect | ||
|
||
padding: 4 | ||
spacing: 6 | ||
|
||
iconWidth: 16 | ||
iconHeight: 16 | ||
|
||
contentItem: IconLabel { | ||
spacing: control.spacing | ||
mirrored: control.mirrored | ||
display: control.display | ||
|
||
icon: control.icon | ||
text: control.text | ||
font: control.font | ||
color: control.palette.buttonText | ||
|
||
} | ||
|
||
background: ButtonPanel { | ||
implicitWidth: 80 | ||
implicitHeight: 24 | ||
|
||
control: control | ||
visible: !control.flat || control.down || control.checked || control.highlighted || control.visualFocus | ||
|| (enabled && control.hovered) | ||
} | ||
} |
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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
module plastik | ||
Button 2.15 Button.qml |
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 was deleted.
Oops, something went wrong.
Oops, something went wrong.