baseconvert 2.0.1__tar.gz → 2.0.2__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: baseconvert
3
- Version: 2.0.1
3
+ Version: 2.0.2
4
4
  Summary: Convert numbers between bases.
5
5
  Home-page: https://github.com/BreadMakesYouFull/baseconvert.git
6
6
  Author: squdle, BreadMakesYouFull
@@ -0,0 +1 @@
1
+ 2.0.2
@@ -17,18 +17,19 @@ Item {
17
17
  property bool enable5: true
18
18
  property bool enable6: true
19
19
  signal buttonPressed(text: string)
20
- property color color1: "#333333"
21
- property color colorText1: "#ffffff"
22
- property color color2: "#333333"
23
- property color colorText2: "#ffffff"
24
- property color color3: "#333333"
25
- property color colorText3: "#ffffff"
26
- property color color4: "#333333"
27
- property color colorText4: "#ffffff"
28
- property color color5: "#333333"
29
- property color colorText5: "#ffffff"
30
- property color color6: "#333333"
31
- property color colorText6: "#ffffff"
20
+ property bool darkMode: Application.styleHints.colorScheme === Qt.ColorScheme.Dark
21
+ property color color1: darkMode ? "#333333" : "#ffffff"
22
+ property color colorText1: darkMode ? "#ffffff" : "#000000"
23
+ property color color2: darkMode ? "#333333" : "#ffffff"
24
+ property color colorText2: darkMode ? "#ffffff" : "#000000"
25
+ property color color3: darkMode ? "#333333" : "#ffffff"
26
+ property color colorText3: darkMode ? "#ffffff" : "#000000"
27
+ property color color4: darkMode ? "#333333" : "#ffffff"
28
+ property color colorText4: darkMode ? "#ffffff" : "#000000"
29
+ property color color5: darkMode ? "#333333" : "#ffffff"
30
+ property color colorText5: darkMode ? "#ffffff" : "#000000"
31
+ property color color6: darkMode ? "#333333" : "#ffffff"
32
+ property color colorText6: darkMode ? "#ffffff" : "#000000"
32
33
  RowLayout {
33
34
  anchors.fill: parent
34
35
  Button {
@@ -11,6 +11,7 @@ ApplicationWindow {
11
11
  property string result: ""
12
12
 
13
13
  font.family: "monospace"
14
+ property bool darkMode: Application.styleHints.colorScheme === Qt.ColorScheme.Dark
14
15
 
15
16
  ColumnLayout {
16
17
  anchors.fill: parent
@@ -31,34 +32,37 @@ ApplicationWindow {
31
32
  }
32
33
  RowLayout {
33
34
  Label {
34
- text: "```From base ```"
35
+ id: from_text
36
+ text: "```base from : 10```"
35
37
  textFormat: Text.MarkdownText
36
38
  Layout.fillWidth: false
37
39
  Layout.preferredWidth: parent.width / 3
38
40
  horizontalAlignment: Qt.AlignRight
39
41
  }
40
- SpinBox {
42
+ Slider {
41
43
  id: from
42
44
  Layout.fillWidth: true
45
+ Layout.columnSpan: 2
43
46
  from: 2
44
47
  value: 10
45
48
  to: 36
46
49
  stepSize: 1
47
- editable: true
48
50
  onValueChanged: {
49
51
  backend.input_changed(input.text, from.value, to.value);
52
+ from_text.text = "```From base : " + from.value.toString() + "```";
50
53
  }
51
54
  }
52
55
  }
53
56
  RowLayout {
54
57
  Label {
55
- text: "```To base ```"
58
+ id: to_text
59
+ text: "```to base: 36```"
56
60
  textFormat: Text.MarkdownText
57
61
  Layout.fillWidth: false
58
62
  Layout.preferredWidth: parent.width / 3
59
63
  horizontalAlignment: Qt.AlignRight
60
64
  }
61
- SpinBox {
65
+ Slider {
62
66
  id: to
63
67
  Layout.fillWidth: true
64
68
  Layout.columnSpan: 2
@@ -66,9 +70,9 @@ ApplicationWindow {
66
70
  value: 36
67
71
  to: 36
68
72
  stepSize: 1
69
- editable: true
70
73
  onValueChanged: {
71
74
  backend.input_changed(input.text, from.value, to.value);
75
+ to_text.text = "```To base : " + to.value.toString() + "```"
72
76
  }
73
77
  }
74
78
  }
@@ -93,10 +97,10 @@ ApplicationWindow {
93
97
  text4: "< DELETE"
94
98
  enable5: false
95
99
  enable6: false
96
- color1: "#0D47A1"
97
- color2: "#C8090B"
98
- color3: "#C8090B"
99
- color4: "#C63100"
100
+ color1: darkMode ? "#0D47A1" : "#ffffff"
101
+ color2: darkMode ? "#C8090B" : "#ffffff"
102
+ color3: darkMode ? "#C8090B" : "#ffffff"
103
+ color4: darkMode ? "#C63100" : "#ffffff"
100
104
  onButtonPressed: (text) => {
101
105
  if( text == "FLIP"){
102
106
  var base_from = from.value;
@@ -140,7 +144,7 @@ ApplicationWindow {
140
144
  enable5: (from.value >= 36) ? true : false
141
145
  enable6: true
142
146
  text6: "."
143
- color6: "#006064"
147
+ color6: darkMode ? "#0D47A1" : "#ffffff"
144
148
  onButtonPressed: (text) => {
145
149
  input.text += text
146
150
  }
@@ -234,7 +238,7 @@ ApplicationWindow {
234
238
  Layout.fillWidth: true
235
239
  Layout.fillHeight: true
236
240
  text1: "0"
237
- color1: "#0D47A1"
241
+ color1: darkMode ? "#0D47A1" : "#ffffff"
238
242
  onButtonPressed: (text) => {input.text += text}
239
243
  enable2: false
240
244
  enable3: false
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: baseconvert
3
- Version: 2.0.1
3
+ Version: 2.0.2
4
4
  Summary: Convert numbers between bases.
5
5
  Home-page: https://github.com/BreadMakesYouFull/baseconvert.git
6
6
  Author: squdle, BreadMakesYouFull
@@ -1 +0,0 @@
1
- 2.0.1
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes