Skip to content

Commit

Permalink
Remove some more default values + cosmetic changes
Browse files Browse the repository at this point in the history
  • Loading branch information
pvuorela committed May 9, 2016
1 parent 8975041 commit 9b00eb6
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 15 deletions.
11 changes: 6 additions & 5 deletions qml/Button.qml
Expand Up @@ -21,20 +21,21 @@ import QtQuick 2.0

Rectangle {
id: button
property string text: ""

property string text
property string textColor: "#ffffff"
property bool enabled: true
property bool highlighted: false
signal clicked();
property bool highlighted

// for custom user menu actions
property bool isShellCommand: false
property bool isShellCommand

signal clicked();

color: highlighted ? "#606060" : "#202020"
border.color: "#303030"
border.width: 1
radius: window.radiusSmall
z: 0
clip: true

width: window.buttonWidthLarge
Expand Down
4 changes: 0 additions & 4 deletions qml/Key.qml
Expand Up @@ -186,18 +186,14 @@ Rectangle {

Timer {
id: keyRepeatStarter
running: false
repeat: false
interval: 400
triggeredOnStart: false
onTriggered: {
keyRepeatTimer.start();
}
}

Timer {
id: keyRepeatTimer
running: false
repeat: true
triggeredOnStart: true
interval: 80
Expand Down
3 changes: 2 additions & 1 deletion qml/LayoutWindow.qml
Expand Up @@ -21,13 +21,14 @@ import QtQuick 2.0

Rectangle {
id: layoutWindow

property string currentLayout: util.settingsValue("ui/keyboardLayout");
property variant layouts: [""]

width: window.width-1
height: window.height-1
color: "#000000"
z: 100
property variant layouts: [""]
state: ""
y: -(height+1)
border.color: "#c0c0c0"
Expand Down
6 changes: 2 additions & 4 deletions qml/Main.qml
Expand Up @@ -308,8 +308,7 @@ Item {

Timer {
id: fadeTimer
running: false
repeat: false

interval: menu.keyboardFadeOutDelay
onTriggered: {
window.sleepVKB();
Expand All @@ -318,8 +317,7 @@ Item {

Timer {
id: bellTimer
running: false
repeat: false

interval: 80
onTriggered: {
window.color = window.bgcolor;
Expand Down
2 changes: 1 addition & 1 deletion textrender.cpp
Expand Up @@ -321,5 +321,5 @@ QPoint TextRender::charsToPixels(QPoint pos)

QSize TextRender::cursorPixelSize()
{
return (QSize(iFontWidth, iFontHeight));
return QSize(iFontWidth, iFontHeight);
}

0 comments on commit 9b00eb6

Please sign in to comment.