Skip to content

Commit

Permalink
Refactor: Correct spelling errors
Browse files Browse the repository at this point in the history
  • Loading branch information
xmx-emm committed Oct 16, 2023
1 parent fe1cd3f commit e1bf778
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions ui/draw_depth.py
Original file line number Diff line number Diff line change
Expand Up @@ -222,8 +222,8 @@ def draw_depth(cls):
width = context.region.width
height = context.region.height

toolbar_width = get_toolbar_width() + pref.depth_office_x
header_height = get_toolbar_width(rt='HEADER') + pref.depth_office_y
toolbar_width = get_toolbar_width() + pref.depth_offset_x
header_height = get_toolbar_width(rt='HEADER') + pref.depth_offset_y
x1 = toolbar_width
y1 = height - header_height
x2 = int(width / 2 * depth_scale) + toolbar_width
Expand Down
4 changes: 2 additions & 2 deletions ui/draw_shortcut_keys.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ def draw(self):

blf.size(font_id, 18 * font_size)
blf.color(font_id, 1, 1, 1, 1)
x = self.pref.shortcut_office_x
y = self.pref.shortcut_office_y
x = self.pref.shortcut_offset_x
y = self.pref.shortcut_offset_y
for index, item in enumerate(reversed(self.draw_shortcut_keys)):
y += 18 * font_size + column_space_size
if 'doc' in item:
Expand Down
16 changes: 8 additions & 8 deletions utils/preferences.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,10 @@ def sculpt_update(self, context):
min=0.1,
step=0.1
)
depth_office_x: IntProperty(
depth_offset_x: IntProperty(
name='剪影图偏移X',
default=0, max=114514, min=0)
depth_office_y: IntProperty(
depth_offset_y: IntProperty(
name='剪影图偏移Y',
default=80, max=114514, min=0)

Expand All @@ -70,10 +70,10 @@ def sculpt_update(self, context):
name='显示快捷键',
default=True
)
shortcut_office_x: IntProperty(
shortcut_offset_x: IntProperty(
name='快捷键偏移X',
default=150, max=114514, min=0)
shortcut_office_y: IntProperty(
shortcut_offset_y: IntProperty(
name='快捷键偏移Y',
default=20, max=114514, min=0)
shortcut_show_size: FloatProperty(name='快捷键显示大小', min=0.1, default=1, max=114)
Expand All @@ -87,15 +87,15 @@ def draw(self, context):
layout.label(text='剪影图:')
layout.prop(self, 'depth_scale')
row = layout.row(align=True)
row.prop(self, 'depth_office_x')
row.prop(self, 'depth_office_y')
row.prop(self, 'depth_offset_x')
row.prop(self, 'depth_offset_y')

layout.label(text='快捷键:')
layout.prop(self, 'show_shortcut_keys')
layout.prop(self, 'shortcut_show_size')
row = layout.row(align=True)
row.prop(self, 'shortcut_office_x')
row.prop(self, 'shortcut_office_y')
row.prop(self, 'shortcut_offset_x')
row.prop(self, 'shortcut_offset_y')


def register():
Expand Down

0 comments on commit e1bf778

Please sign in to comment.