Browse Source

Merge pull request #1572 from alexvandesande/UI

UI
cl-refactor
Gav Wood 10 years ago
parent
commit
4dd5b58b66
  1. 4
      mix/qml/DebugInfoList.qml
  2. 75
      mix/qml/Debugger.qml
  3. 21
      mix/qml/StatusPane.qml
  4. 12
      mix/qml/html/cm/solarized.css
  5. BIN
      mix/qml/img/closedtriangleindicator.png
  6. BIN
      mix/qml/img/closedtriangleindicator@2x.png
  7. BIN
      mix/qml/img/opentriangleindicator.png
  8. BIN
      mix/qml/img/opentriangleindicator@2x.png
  9. BIN
      mix/qml/img/signerroricon32.png
  10. BIN
      mix/qml/img/warningicon.png
  11. BIN
      mix/qml/img/warningicon@2x.png
  12. 5
      mix/res.qrc

4
mix/qml/DebugInfoList.qml

@ -40,11 +40,9 @@ ColumnLayout {
height: 25 height: 25
id: header id: header
Image { Image {
source: "qrc:/qml/img/opentriangleindicator.png" source: "img/closedtriangleindicator.png"
width: 15 width: 15
height: 15 height: 15
sourceSize.width: 15
sourceSize.height: 15
id: storageImgArrow id: storageImgArrow
} }

75
mix/qml/Debugger.qml

@ -206,8 +206,8 @@ Rectangle {
anchors.top: parent.top anchors.top: parent.top
anchors.topMargin: 15 anchors.topMargin: 15
anchors.left: parent.left; anchors.left: parent.left;
anchors.leftMargin: machineStates.sideMargin anchors.leftMargin: machineStates.sideMargin
width: debugScrollArea.width - machineStates.sideMargin * 2 - 20; width: debugScrollArea.width - machineStates.sideMargin * 2 - 20 ;
spacing: machineStates.sideMargin spacing: machineStates.sideMargin
Rectangle { Rectangle {
@ -218,15 +218,13 @@ Rectangle {
color: "transparent" color: "transparent"
Rectangle { Rectangle {
anchors.top: parent.top anchors.fill: parent
anchors.bottom: parent.bottom
anchors.left: parent.left
color: "transparent" color: "transparent"
width: parent.width * 0.4
RowLayout { RowLayout {
anchors.horizontalCenter: parent.horizontalCenter anchors.fill: parent
id: jumpButtons id: jumpButtons
spacing: 3 spacing: 3
layoutDirection: Qt.LeftToRight
StepActionImage StepActionImage
{ {
@ -239,6 +237,7 @@ Rectangle {
buttonShortcut: "Ctrl+Shift+F8" buttonShortcut: "Ctrl+Shift+F8"
buttonTooltip: qsTr("Start Debugging") buttonTooltip: qsTr("Start Debugging")
visible: true visible: true
Layout.alignment: Qt.AlignLeft
} }
StepActionImage StepActionImage
@ -351,35 +350,38 @@ Rectangle {
buttonTooltip: qsTr("Run Forward") buttonTooltip: qsTr("Run Forward")
visible: false visible: false
} }
}
}
Rectangle { Rectangle {
anchors.top: parent.top anchors.top: parent.top
anchors.bottom: parent.bottom anchors.bottom: parent.bottom
anchors.right: parent.right anchors.right: parent.right
width: parent.width * 0.6 color: "transparent"
color: "transparent" Layout.fillWidth: true
Slider { Layout.minimumWidth: parent.width * 0.2
id: statesSlider Layout.alignment: Qt.AlignRight
anchors.fill: parent
tickmarksEnabled: true Slider {
stepSize: 1.0 id: statesSlider
onValueChanged: Debugger.jumpTo(value); anchors.fill: parent
style: SliderStyle { tickmarksEnabled: true
groove: Rectangle { stepSize: 1.0
implicitHeight: 3 onValueChanged: Debugger.jumpTo(value);
color: "#7da4cd" style: SliderStyle {
radius: 8 groove: Rectangle {
} implicitHeight: 3
handle: Rectangle { color: "#7da4cd"
anchors.centerIn: parent radius: 8
color: control.pressed ? "white" : "lightgray" }
border.color: "gray" handle: Rectangle {
border.width: 2 anchors.centerIn: parent
implicitWidth: 10 color: control.pressed ? "white" : "lightgray"
implicitHeight: 10 border.color: "gray"
radius: 12 border.width: 2
implicitWidth: 10
implicitHeight: 10
radius: 12
}
}
} }
} }
} }
@ -480,7 +482,7 @@ Rectangle {
anchors.top : parent.top anchors.top : parent.top
anchors.bottom: parent.bottom anchors.bottom: parent.bottom
anchors.right: parent.right anchors.right: parent.right
height: parent.height //- 2 * stateListContainer.border.width height: parent.height
color: "transparent" color: "transparent"
ColumnLayout ColumnLayout
{ {
@ -520,7 +522,6 @@ Rectangle {
title : qsTr("Stack") title : qsTr("Stack")
itemDelegate: Item { itemDelegate: Item {
id: renderedItem id: renderedItem
//height: 25
width: parent.width width: parent.width
RowLayout RowLayout
{ {

21
mix/qml/StatusPane.qml

@ -230,13 +230,26 @@ Rectangle {
Button Button
{ {
z: 4 z: 4
anchors.right: parent.right anchors.centerIn: parent
anchors.rightMargin: 9
anchors.verticalCenter: parent.verticalCenter
id: goToLineBtn id: goToLineBtn
text: "" text: ""
iconSource: "qrc:/qml/img/signerroricon32.png" width: 30
height: 30
action: goToCompilationError action: goToCompilationError
style: ButtonStyle {
background: Rectangle {
color: "transparent"
Image {
source: "qrc:/qml/img/warningicon.png"
height: 30
width: 30
sourceSize.width: 30
sourceSize.height: 30
anchors.centerIn: parent
}
}
}
} }
} }
} }

12
mix/qml/html/cm/solarized.css

@ -154,8 +154,10 @@ http://ethanschoonover.com/solarized/img/solarized-palette.png
} }
/* /*
Active line. Negative margin compensates left padding of the text in the Active line. Negative margin compensates left padding of the text in the
view-port view-port
*/ */
.cm-s-solarized.cm-s-dark .CodeMirror-activeline-background { .cm-s-solarized.cm-s-dark .CodeMirror-activeline-background {
background: rgba(255, 255, 255, 0.10); background: rgba(255, 255, 255, 0.10);
@ -166,20 +168,24 @@ view-port
/* Code execution */ /* Code execution */
.CodeMirror-exechighlight { .CodeMirror-exechighlight {
background: #eee8d5; border-bottom: double 1px #94A2A2;
} }
/* Error annotation */ /* Error annotation */
.CodeMirror-errorannotation { .CodeMirror-errorannotation {
border-bottom: 1px solid #b58900; border-bottom: 1px solid #DD3330;
margin-bottom: 4px;
} }
.CodeMirror-errorannotation-context { .CodeMirror-errorannotation-context {
font-family: monospace; font-family: monospace;
font-size: small; font-size: small;
color: #586e75; color: #EEE9D5;
background: #b58900; background: #b58900;
padding: 2px; padding: 2px;
text-shadow: none !important;
border-top: solid 2px #063742;
} }
span.CodeMirror-selectedtext { color: #586e75 !important; } span.CodeMirror-selectedtext { color: #586e75 !important; }

BIN
mix/qml/img/closedtriangleindicator.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 422 B

After

Width:  |  Height:  |  Size: 242 B

BIN
mix/qml/img/closedtriangleindicator@2x.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 423 B

BIN
mix/qml/img/opentriangleindicator.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 425 B

After

Width:  |  Height:  |  Size: 257 B

BIN
mix/qml/img/opentriangleindicator@2x.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 836 B

After

Width:  |  Height:  |  Size: 429 B

BIN
mix/qml/img/signerroricon32.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 KiB

BIN
mix/qml/img/warningicon.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 498 B

BIN
mix/qml/img/warningicon@2x.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

5
mix/res.qrc

@ -20,6 +20,7 @@
<file>qml/img/bugiconactive.png</file> <file>qml/img/bugiconactive.png</file>
<file>qml/img/bugiconinactive.png</file> <file>qml/img/bugiconinactive.png</file>
<file>qml/img/closedtriangleindicator.png</file> <file>qml/img/closedtriangleindicator.png</file>
<file>qml/img/closedtriangleindicator@2x.png</file>
<file>qml/img/closedtriangleindicator_filesproject.png</file> <file>qml/img/closedtriangleindicator_filesproject.png</file>
<file>qml/img/console.png</file> <file>qml/img/console.png</file>
<file>qml/img/copy.png</file> <file>qml/img/copy.png</file>
@ -43,6 +44,7 @@
<file>qml/img/note.png</file> <file>qml/img/note.png</file>
<file>qml/img/openedfolder.png</file> <file>qml/img/openedfolder.png</file>
<file>qml/img/opentriangleindicator.png</file> <file>qml/img/opentriangleindicator.png</file>
<file>qml/img/opentriangleindicator@2x.png</file>
<file>qml/img/opentriangleindicator_filesproject.png</file> <file>qml/img/opentriangleindicator_filesproject.png</file>
<file>qml/img/plus.png</file> <file>qml/img/plus.png</file>
<file>qml/img/projecticon.png</file> <file>qml/img/projecticon.png</file>
@ -63,6 +65,7 @@
<file>qml/img/copyiconactive.png</file> <file>qml/img/copyiconactive.png</file>
<file>qml/img/searchicon.png</file> <file>qml/img/searchicon.png</file>
<file>qml/img/stop_button2x.png</file> <file>qml/img/stop_button2x.png</file>
<file>qml/img/signerroricon32.png</file> <file>qml/img/warningicon.png</file>
<file>qml/img/warningicon@2x.png</file>
</qresource> </qresource>
</RCC> </RCC>

Loading…
Cancel
Save