Skip to content

Commit 53da03a

Browse files
committed
Moved and renamed font size field in editor settings panel.
1 parent dbdf1a9 commit 53da03a

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

src/php/settings/settings-fields.php

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -162,12 +162,21 @@ function get_settings_fields(): array {
162162
'codemirror' => 'indentUnit',
163163
'min' => 0,
164164
],
165+
'font_size' => [
166+
'name' => __( 'Font Size', 'code-snippets' ),
167+
'type' => 'number',
168+
'label' => _x( 'px', 'unit', 'code-snippets' ),
169+
'codemirror' => 'fontSize',
170+
'min' => 8,
171+
'max' => 28,
172+
],
165173
'wrap_lines' => [
166174
'name' => __( 'Wrap Lines', 'code-snippets' ),
167175
'type' => 'checkbox',
168176
'label' => __( 'Soft-wrap long lines of code instead of horizontally scrolling.', 'code-snippets' ),
169177
'codemirror' => 'lineWrapping',
170178
],
179+
171180
'code_folding' => [
172181
'name' => __( 'Code Folding', 'code-snippets' ),
173182
'type' => 'checkbox',
@@ -216,14 +225,6 @@ function get_settings_fields(): array {
216225
'options' => get_editor_theme_list(),
217226
'codemirror' => 'theme',
218227
],
219-
'font_size' => [
220-
'name' => __( 'Code Editor Font Size', 'code-snippets' ),
221-
'type' => 'number',
222-
'label' => _x( 'px', 'unit', 'code-snippets' ),
223-
'codemirror' => 'fontSize',
224-
'min' => 8,
225-
'max' => 28,
226-
],
227228
];
228229

229230
$fields = apply_filters( 'code_snippets_settings_fields', $fields );

0 commit comments

Comments
 (0)