Skip to content

Commit

Permalink
Finish settings and do v1.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
SekoiaTree committed Apr 10, 2023
1 parent 796e215 commit 5fe11f7
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 9 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "fendesk"
version = "0.1.0"
version = "1.0.0"
description = "An infinite-precision unit-aware calculator program based on fend and Tauri"
authors = ["Sekoia"]
license = "MIT"
Expand Down
21 changes: 18 additions & 3 deletions ui/settings.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
body {
display: grid;
grid-template-columns: auto auto;
grid-row-gap: 0.4em;

align-items: center;
padding: 10px 1em;
}
Expand All @@ -9,7 +11,7 @@ label {
grid-column: 1;
}

input, textarea, select {
input, textarea, select, .select-wrapper {
grid-column: 2;
}

Expand All @@ -32,10 +34,19 @@ select {

background-color: var(--bg);
padding: 1px 0.75ch;

width: 100%;
}

.select-wrapper {
position: relative;
}

select:after {
content: 'v';
.select-wrapper::after {
content: "▼";
font-size: 1rem;
right: 10px;
position: absolute;
}

input[type="number"] {
Expand All @@ -45,6 +56,10 @@ input[type="number"] {
padding: 1px 0.75ch;
}

input[type=number]::-webkit-inner-spin-button {
-webkit-appearance: none;
}

input[type="checkbox"] {
appearance: none;
position: relative;
Expand Down
12 changes: 7 additions & 5 deletions ui/settings.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,13 @@
<input id="save_back_count" type="number">

<label for="ctrl_c_behavior">How Ctrl-C should behave</label>
<select id="ctrl_c_behavior">
<option value="input">Input</option>
<option value="hint">Hint</option>
<option value="prev_result">Previous result</option>
</select>
<div class="select-wrapper">
<select id="ctrl_c_behavior">
<option value="input">Input</option>
<option value="hint">Hint</option>
<option value="prev_result">Previous result</option>
</select>
</div>

<label for="global_inputs">Inputs to run on boot (requires restart)</label>
<textarea id="global_inputs"></textarea>
Expand Down

0 comments on commit 5fe11f7

Please sign in to comment.