Commit 2b7b2919 authored by Rohan Asokan's avatar Rohan Asokan
Browse files

Made UI updates to Binary mode

parent 1a158ffd
......@@ -21,7 +21,7 @@ Kirigami.Page {
property color dropShadowColor: Qt.darker(Kirigami.Theme.backgroundColor, 1.15)
property int keypadHeight: {
let rows = 4, columns = 4;
let rows = 6, columns = 5;
// restrict keypad so that the height of buttons never go past 0.85 times their width
if ((initialPage.height - Kirigami.Units.gridUnit * 7) / rows > 0.85 * initialPage.width / columns) {
return rows * 0.85 * initialPage.width / columns;
......@@ -113,6 +113,8 @@ Kirigami.Page {
id: binaryPad
anchors.fill: parent
anchors.margins: Kirigami.Units.smallSpacing
// Uncomment next line for function overlay
// anchors.rightMargin: Kirigami.Units.gridUnit * 1.5
onPressed: {
inputManager.append(text);
}
......
......@@ -21,6 +21,13 @@ GridLayout {
//
// Might have to look into adding a function overlay to seperate out uncommon functions (fractional, modulo, abs)
// Rwo Number from bottom: 6
NumberButton {text: ""; onClicked: pressed(text); special: true;}
NumberButton {text: "<<"; onClicked: pressed(text); special: true;}
NumberButton {text: ">>"; onClicked: pressed(text); special: true;}
NumberButton {text: "ONEC"; display: "ones"; onClicked: pressed(text); special: true;}
NumberButton {text: "TWOC"; display: "twos"; onClicked: pressed(text); special: true;}
// Row Number from bottom: 5
NumberButton {text: "(" ; onClicked: pressed(text); special: true;}
NumberButton {text: ")" ; onClicked: pressed(text); special: true;}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment