Skip to content

Commit 1fab464

Browse files
committed
style: ✏️
1 parent d910af4 commit 1fab464

File tree

2 files changed

+13
-8
lines changed

2 files changed

+13
-8
lines changed

ui/settings.py

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,8 @@ def mount_speed_section():
6060
master=speed_frame,
6161
font=smaller_font,
6262
anchor="w",
63-
text=i18n(["Mouse movement speed in your Android device.", "鼠标在你的安卓设备上的移动速度。"]))
63+
text=i18n(["Mouse movement speed in your Android device.",
64+
"鼠标在你的安卓设备上的移动速度。"]))
6465
speed_slider_frame = ctk.CTkFrame(master=speed_frame)
6566
low_label = ctk.CTkLabel(
6667
master=speed_slider_frame,
@@ -98,7 +99,8 @@ def edge_toggling_section():
9899
edge_toggling_info_label = ctk.CTkLabel(
99100
master=edge_toggling_frame,
100101
font=smaller_font,
101-
text=i18n(["When enabled, the control will be toggled when the mouse reaches the screen edge.", "启用后,当鼠标移至屏幕边缘时会自动切换控制。"]))
102+
text=i18n(["When enabled, the control will be toggled when the mouse reaches the screen edge.",
103+
"启用后,当鼠标移至屏幕边缘时会自动切换控制。"]))
102104

103105
device_position_label = ctk.CTkLabel(
104106
master=edge_toggling_frame,
@@ -130,7 +132,8 @@ def edge_toggling_section():
130132
trigger_margin_info_label = ctk.CTkLabel(
131133
master=edge_toggling_frame,
132134
font=smaller_font,
133-
text=i18n(["Prevents triggers when the mouse reaches the corners. Larger values reduce accidents.", "避免鼠标触及屏幕角落时触发操作。更大的值可以避免误操作。"]))
135+
text=i18n(["Prevents triggers when the mouse reaches the corners. Larger values reduce accidents.",
136+
"避免鼠标触及屏幕角落时触发切换。更大的值可以避免误操作。"]))
134137

135138
edge_toggling_frame.pack(fill="x", pady=(20, 0))
136139
edge_toggling_label.grid(row=0, column=0, padx=(20, 0), sticky="w")
@@ -145,7 +148,7 @@ def edge_toggling_section():
145148
trigger_margin_entry.grid(row=5, column=1, pady=(6, 0), sticky="w")
146149
trigger_margin_info_label.grid(row=6, column=0, columnspan=2, padx=20, sticky="w")
147150

148-
def mouse_keep_wakeup_section():
151+
def keep_wakeup_section():
149152
nonlocal settings_scroll_frame, smaller_font, normal_font, larger_font, keep_wakeup_var
150153
keep_wakeup_frame = ctk.CTkFrame(master=settings_scroll_frame)
151154
keep_wakeup_label = ctk.CTkLabel(
@@ -159,7 +162,8 @@ def mouse_keep_wakeup_section():
159162
info_label = ctk.CTkLabel(
160163
master=keep_wakeup_frame,
161164
font=smaller_font,
162-
text=i18n(["When enabled, the device screen will stay on and prevent auto-sleep.", "启用后,设备屏幕将持续亮屏,防止自动休眠。"]))
165+
text=i18n(["When enabled, the device screen will stay on and prevent auto-sleep.",
166+
"启用后,设备屏幕将持续亮屏,防止自动休眠。"]))
163167
keep_wakeup_frame.pack(fill="x", pady=(20, 0))
164168
keep_wakeup_label.grid(row=0, column=0, padx=(20, 0), sticky="w")
165169
check_box.grid(row=0, column=1)
@@ -221,14 +225,15 @@ def confirm():
221225
mouse_theme_section()
222226
mount_speed_section()
223227
edge_toggling_section()
224-
mouse_keep_wakeup_section()
228+
keep_wakeup_section()
225229
mount_language_section()
226230

227231
# action buttons section
228232
button_frame = ctk.CTkFrame(master=root)
229233
tips_label = ctk.CTkLabel(
230234
master=button_frame,
231-
text=i18n(["Some settings require a restart to take effect.", "部分设置需要重启应用后生效。"]),
235+
text=i18n(["Some settings require a restart to take effect.",
236+
"部分设置需要重启应用后生效。"]),
232237
anchor="e",
233238
font=smaller_font)
234239
cancel_button = ctk.CTkButton(

utils/logger.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class LogType(Enum):
1111
class Logger:
1212
DEFAULT_LOG_FILE_NAME = "InputShare-debug.log"
1313
LOG_TYPE_NAME_MAP = {
14-
LogType.Info : "Into",
14+
LogType.Info : "Info",
1515
LogType.Error : "Error",
1616
LogType.Adb : "ADB",
1717
LogType.Server: "Server",

0 commit comments

Comments
 (0)