Skip to content

Commit 5dee12a

Browse files
committed
Improve stroke keyboard enter key baseline
1 parent f1a0e5d commit 5dee12a

4 files changed

Lines changed: 4 additions & 0 deletions

File tree

app/src/main/res/values/dimens.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
<dimen name="baseline_correction__space_bar">0.5dp</dimen>
3333
<dimen name="baseline_correction__strokes">2dp</dimen>
3434
<dimen name="baseline_correction__strokes_digit">0.75dp</dimen>
35+
<dimen name="baseline_correction__strokes_enter_key">0.25dp</dimen>
3536
<dimen name="baseline_correction__qwerty">0.75dp</dimen>
3637
<dimen name="baseline_correction__qwerty_digit">1dp</dimen>
3738
<dimen name="baseline_correction__qwerty_backspace">1.75dp</dimen>

app/src/main/res/xml/keyboard_strokes.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@
118118
app:keyValueText="ENTER"
119119
app:keyIsLongPressable="true"
120120
app:keyTextSize="@dimen/font_size__enter_key"
121+
app:keyTextOffsetY="@dimen/baseline_correction__strokes_enter_key"
121122
app:keyFillColour="@color/enter_key_fill"
122123
app:keyIsPreviewable="false"
123124
/>

app/src/main/res/xml/keyboard_strokes_symbols_1.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@
113113
app:keyValueText="ENTER"
114114
app:keyIsLongPressable="true"
115115
app:keyTextSize="@dimen/font_size__enter_key"
116+
app:keyTextOffsetY="@dimen/baseline_correction__strokes_enter_key"
116117
app:keyFillColour="@color/enter_key_fill"
117118
app:keyIsPreviewable="false"
118119
/>

app/src/main/res/xml/keyboard_strokes_symbols_2.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@
9090
app:keyValueText="ENTER"
9191
app:keyIsLongPressable="true"
9292
app:keyTextSize="@dimen/font_size__enter_key"
93+
app:keyTextOffsetY="@dimen/baseline_correction__strokes_enter_key"
9394
app:keyFillColour="@color/enter_key_fill"
9495
app:keyIsPreviewable="false"
9596
/>

0 commit comments

Comments
 (0)