From c8747e43a59c84024bf81ada99684785e0f93523 Mon Sep 17 00:00:00 2001 From: zombieFox Date: Sat, 2 Oct 2021 08:55:30 +0100 Subject: [PATCH] improve menu item name consistency --- src/component/menu/index.js | 2 +- src/component/menuContent/headerSetting/index.js | 14 +++++++------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/component/menu/index.js b/src/component/menu/index.js index 9de0f789..0b42fde9 100644 --- a/src/component/menu/index.js +++ b/src/component/menu/index.js @@ -19,7 +19,7 @@ menu.navData = [ // { name: 'Debug', active: true, overscroll: true, sub: ['Input', 'Button', 'Bookmark', 'Icon'] }, { name: 'Theme', active: true, overscroll: true, sub: ['Preset', 'Saved', 'Style', 'Colour', 'Accent', 'Font', 'Radius', 'Shadow', 'Shade', 'Opacity', 'Background', 'Layout', 'Header', 'Bookmark'] }, { name: 'Layout', active: false, overscroll: true, sub: ['Scaling', 'Area', 'Padding', 'Gutter', 'Alignment', 'Page'] }, - { name: 'Header', active: false, overscroll: true, sub: ['Area', 'Greeting', 'Transitional words', 'Clock', 'Date', 'Search'] }, + { name: 'Header', active: false, overscroll: true, sub: ['Alignment', 'Greeting', 'Transitional words', 'Clock', 'Date', 'Search'] }, { name: 'Bookmark', active: false, overscroll: true, sub: ['General', 'Style', 'Orientation', 'Sort'] }, { name: 'Group', active: false, overscroll: true, sub: ['Alignment', 'Name', 'Toolbar'] }, { name: 'Toolbar', active: false, overscroll: true, sub: ['Size', 'Location', 'Position', 'Controls'] }, diff --git a/src/component/menuContent/headerSetting/index.js b/src/component/menuContent/headerSetting/index.js index a903f0b7..5c95632d 100644 --- a/src/component/menuContent/headerSetting/index.js +++ b/src/component/menuContent/headerSetting/index.js @@ -44,7 +44,7 @@ import { applyCSSState } from '../../../utility/applyCSSState'; const headerSetting = {}; headerSetting.control = { - area: {}, + alignment: {}, greeting: {}, transitional: {}, clock: {}, @@ -394,7 +394,7 @@ headerSetting.disable = () => { }; headerSetting.edge = { - area: {}, + alignment: {}, greeting: {}, transitional: {}, clock: {}, @@ -414,9 +414,9 @@ headerSetting.update = () => { }; -headerSetting.area = (parent) => { +headerSetting.alignment = (parent) => { - headerSetting.area.alignment = new Control_radioGrid({ + headerSetting.alignment.alignment = new Control_radioGrid({ object: state.get.current(), radioGroup: [ { id: 'header-item-justify-left', labelText: 'Left', value: 'left', position: 1 }, @@ -433,15 +433,15 @@ headerSetting.area = (parent) => { } }); - headerSetting.area.alignmentHelper = new Control_helperText({ + headerSetting.alignment.alignmentHelper = new Control_helperText({ complexText: true, text: [`Effects may not be visible if the ${(new Link({ text:'Search box size', href: '#menu-content-item-search'})).link().outerHTML} size is set to Auto and grows to fill available space.`] }); parent.appendChild( node('div', [ - headerSetting.area.alignment.wrap(), - headerSetting.area.alignmentHelper.wrap() + headerSetting.alignment.alignment.wrap(), + headerSetting.alignment.alignmentHelper.wrap() ]) );