Skip to content

Commit

Permalink
Merge pull request #207 from brandonjp/patch-2
Browse files Browse the repository at this point in the history
Move Theme select above editor preview
  • Loading branch information
sheabunge authored Dec 20, 2024
2 parents be10007 + 5503e19 commit 65cf9cb
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions src/php/settings/settings-fields.php
Original file line number Diff line number Diff line change
Expand Up @@ -134,14 +134,6 @@ function get_settings_fields(): array {
// Code Editor settings section.

$fields['editor'] = [
'theme' => [
'name' => __( 'Theme', 'code-snippets' ),
'type' => 'select',
'default' => 'default',
'options' => get_editor_theme_list(),
'codemirror' => 'theme',
],

'indent_with_tabs' => [
'name' => __( 'Indent With Tabs', 'code-snippets' ),
'type' => 'checkbox',
Expand Down Expand Up @@ -217,6 +209,7 @@ function get_settings_fields(): array {
'default' => true,
'codemirror' => 'styleActiveLine',
],

'keymap' => [
'name' => __( 'Keymap', 'code-snippets' ),
'type' => 'select',
Expand All @@ -230,6 +223,14 @@ function get_settings_fields(): array {
],
'codemirror' => 'keyMap',
],

'theme' => [
'name' => __( 'Theme', 'code-snippets' ),
'type' => 'select',
'default' => 'default',
'options' => get_editor_theme_list(),
'codemirror' => 'theme',
],
];

$fields = apply_filters( 'code_snippets_settings_fields', $fields );
Expand Down

0 comments on commit 65cf9cb

Please sign in to comment.