Skip to content

Commit f117fba

Browse files
committed
refactor(theme): deprecate style/horizontal
1 parent 5495a21 commit f117fba

File tree

5 files changed

+0
-8
lines changed

5 files changed

+0
-8
lines changed

app/src/main/assets/shared/tongwenfeng.trime.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ style:
3939
comment_on_top: true #编码提示在上方或右侧
4040
comment_text_size: 12 #编码提示字号
4141
hanb_font: hanb.ttf #扩充字体
42-
horizontal: true #水平模式
4342
horizontal_gap: *hgap #键水平间距
4443
key_font: symbol.ttf #键盘字体
4544
key_height: *jpgd4 #键高

app/src/main/assets/shared/trime.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ style:
2121
comment_on_top: true #編碼提示在上方或右側
2222
comment_text_size: 12 #編碼提示字號
2323
hanb_font: hanb.ttf #擴充字型
24-
horizontal: true #水平模式
2524
horizontal_gap: 1 #鍵水平間距
2625
keyboard_padding: 0 #竖屏模式下,屏幕左右两侧与键盘的距离(曲面屏减少误触)
2726
keyboard_padding_left: 0 #竖屏屏模式下,左手键盘布局,屏幕左侧与键盘的距离

app/src/main/java/com/osfans/trime/data/theme/mapper/GeneralStyleMapper.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ class GeneralStyleMapper(
2626
commentPosition = getEnum("comment_position", GeneralStyle.CommentPosition.UNKNOWN),
2727
commentTextSize = getFloat("comment_text_size"),
2828
hanbFont = getStringList("hanb_font"),
29-
horizontal = getBoolean("horizontal"),
3029
horizontalGap = getInt("horizontal_gap"),
3130
keyboardPadding = getInt("keyboard_padding"),
3231
keyboardPaddingLeft = getInt("keyboard_padding_left"),

app/src/main/java/com/osfans/trime/data/theme/model/GeneralStyle.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ data class GeneralStyle(
2525
val commentPosition: CommentPosition = CommentPosition.RIGHT,
2626
val commentTextSize: Float = 15f,
2727
val hanbFont: List<String> = emptyList(),
28-
val horizontal: Boolean = true,
2928
val horizontalGap: Int = 0,
3029
val keyboardPadding: Int = 0,
3130
val keyboardPaddingLeft: Int = 0,

doc/trime-schema.json

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -150,10 +150,6 @@
150150
"type": "string",
151151
"description": "擴充字型"
152152
},
153-
"horizontal": {
154-
"type": "boolean",
155-
"description": "水平模式"
156-
},
157153
"horizontal_gap": {
158154
"type": "integer",
159155
"description": "鍵水平間距"

0 commit comments

Comments
 (0)