diff --git a/program/MapWindow.cs b/program/MapWindow.cs index 4e98a55..8f86a6f 100644 --- a/program/MapWindow.cs +++ b/program/MapWindow.cs @@ -101,11 +101,13 @@ [UI] private RadioButton ViewBackRadio = null; [UI] private RadioButton ViewRightRadio = null; [UI] private RadioButton ViewLeftRadio = null; - [UI] private CheckButton HideCircleCheck = null; + [UI] private Switch ShowNumbersSwitch = null; + [UI] private RadioButton SizeLRadio = null; + [UI] private RadioButton SizeXLRadio = null; // NEW — needed only so the map-page CSS can reach them. [UI] private Button SoundTestButton = null; - [UI] private CheckButton BlackAudioCheck = null; + [UI] private Switch BlackAudioSwitch = null; [UI] private Label JacketSizeLabel = null; // For new UI [UI] private DrawingArea HeartWaveArea = null; @@ -115,7 +117,7 @@ [UI] private Label HeartWaveHeader = null; [UI] private Label BreathWaveHeader = null; [UI] private Button MapExplainButton = null; - [UI] private CheckButton HideMapCheck = null; + [UI] private Switch ShowVolumeMapSwitch = null; [UI] private CheckButton HideMetersCheck = null; private readonly Language _lang; @@ -188,9 +190,10 @@ private bool _keysHooked; private bool ShowBody { get { return _tShowBody == null || _tShowBody.Active; } } - private bool ShowMap { get { return (_tShowMap == null || _tShowMap.Active) && !(HideMapCheck != null && HideMapCheck.Active); } } + private bool ShowMap { get { return (_tShowMap == null || _tShowMap.Active) + && (ShowVolumeMapSwitch == null || ShowVolumeMapSwitch.Active); } } private bool ShowCircles { get { return (_tShowCircles == null || _tShowCircles.Active) - && !HideCircleCheck.Active; } } + && (ShowNumbersSwitch == null || ShowNumbersSwitch.Active); } } private bool ShowGuides { get { return _tGuides != null && _tGuides.Active; } } // ── debug state ── @@ -236,7 +239,8 @@ MapArea, MapTitleLabel, MapCaseLabel, MapBackButton, BodySkeletonRadio, BodyJacketRadio, JacketSizeCombo, JacketSizeLabel, ViewFrontRadio, ViewBackRadio, ViewRightRadio, ViewLeftRadio, - HideCircleCheck, BlackAudioCheck, SoundTestButton, HideMapCheck, HideMetersCheck + ShowNumbersSwitch, BlackAudioSwitch, SoundTestButton, ShowVolumeMapSwitch, + SizeLRadio, SizeXLRadio, HideMetersCheck }; foreach (var w in mapWidgets) if (w != null) w.StyleContext.AddClass("mappage"); @@ -260,11 +264,13 @@ SetName(ViewBackRadio, "ViewBackRadio"); SetName(ViewRightRadio, "ViewRightRadio"); SetName(ViewLeftRadio, "ViewLeftRadio"); - SetName(HideCircleCheck, "HideCircleCheck"); - SetName(BlackAudioCheck, "BlackAudioCheck"); SetName(SoundTestButton, "SoundTestButton"); - SetName(HideMapCheck, "HideMapCheck"); SetName(HideMetersCheck, "HideMetersCheck"); + SetName(ShowNumbersSwitch, "ShowNumbersSwitch"); + SetName(BlackAudioSwitch, "BlackAudioSwitch"); + SetName(ShowVolumeMapSwitch, "ShowVolumeMapSwitch"); + SetName(SizeLRadio, "SizeLRadio"); + SetName(SizeXLRadio, "SizeXLRadio"); // Register() assigns Name itself and pulls the label from the CSVs. _lang.Register("MapBackButton", MapBackButton); @@ -288,19 +294,24 @@ HookView(ViewRightRadio, "right"); HookView(ViewLeftRadio, "left"); - HideCircleCheck.Toggled += (s, e) => MapArea.QueueDraw(); - if (HideMapCheck != null) - HideMapCheck.Toggled += (s, e) => MapArea.QueueDraw(); - if (HideMetersCheck != null) - HideMetersCheck.Toggled += (s, e) => MapArea.QueueDraw(); - if (BlackAudioCheck != null) - BlackAudioCheck.Toggled += (s, e) => + // HideCircleCheck.Toggled += (s, e) => MapArea.QueueDraw(); + if (ShowNumbersSwitch != null) + ShowNumbersSwitch.AddNotification("active", (o, a) => MapArea.QueueDraw()); + if (ShowVolumeMapSwitch != null) + ShowVolumeMapSwitch.AddNotification("active", (o, a) => MapArea.QueueDraw()); + if (BlackAudioSwitch != null) + BlackAudioSwitch.AddNotification("active", (o, a) => { - _lastPx = _lastPy = -1; // force re-analysis of the current pixel + _lastPx = _lastPy = -1; UpdateAudioFromPosition(); - Logger.Write("audio", "black-pixel audio " + - (BlackAudioEnabled ? "ON" : "OFF")); - }; + Logger.Write("audio", "black-pixel audio " + (BlackAudioEnabled ? "ON" : "OFF")); + }); + + // L / XL buttons drive the hidden JacketSizeCombo, so JacketSize keeps working + if (SizeLRadio != null) + SizeLRadio.Toggled += (s, e) => { if (SizeLRadio.Active) JacketSizeCombo.Active = 0; }; + if (SizeXLRadio != null) + SizeXLRadio.Toggled += (s, e) => { if (SizeXLRadio.Active) JacketSizeCombo.Active = 1; }; // Ctrl+T anywhere, or Ctrl+double-click on the map, opens the tuner. MapArea.Realized += (s, e) => HookKeys(); @@ -1661,14 +1672,14 @@ Logger.Write("sound", "debug volume sweep stopped"); } - private void DrawWave(DrawnArgs args, DrawingArea area, WaveData wave, double cursor, - double r, double g, double b) + private void DrawWave(DrawnArgs args, DrawingArea area, WaveData wave, double cursor,double r, double g, double b) { var cr = args.Cr; int w = area.AllocatedWidth, h = area.AllocatedHeight; double mid = h / 2.0; - cr.SetSourceRGB(0.85, 0.85, 0.85); + // cr.SetSourceRGB(0.85, 0.85, 0.85); + cr.SetSourceRGB(0.965, 0.969, 0.976); cr.Rectangle(0, 0, w, h); cr.Fill(); @@ -1861,7 +1872,7 @@ /// the null check keeps it ON rather than silently killing the audio. private bool BlackAudioEnabled { - get { return BlackAudioCheck == null || BlackAudioCheck.Active; } + get { return BlackAudioSwitch == null || BlackAudioSwitch.Active; } } /// Must match the pixbuf BodyToMapPixel indexes into, or px/py land @@ -2110,28 +2121,28 @@ if (!shown) MuteRegions(); } - private void AddHideLabelsOption() - { - if (_hideLabelsCheck != null || HideMapCheck == null) return; + // private void AddHideLabelsOption() + // { + // if (_hideLabelsCheck != null || ShowVolumeMapSwitch == null) return; - _hideLabelsCheck = new CheckButton(_lang != null && _lang.IsEnglish ? "Hide labels" : "ラベルを隠す"); - _hideLabelsCheck.StyleContext.AddClass("mappage"); - _hideLabelsCheck.Toggled += (s, e) => - { - _showRegionLabels = !_hideLabelsCheck.Active; - MapArea.QueueDraw(); - }; + // _hideLabelsCheck = new CheckButton(_lang != null && _lang.IsEnglish ? "Hide labels" : "ラベルを隠す"); + // _hideLabelsCheck.StyleContext.AddClass("mappage"); + // _hideLabelsCheck.Toggled += (s, e) => + // { + // _showRegionLabels = !_hideLabelsCheck.Active; + // MapArea.QueueDraw(); + // }; - var box = HideMapCheck.Parent as Box; - if (box != null) - { - box.PackStart(_hideLabelsCheck, false, false, 0); - box.ReorderChild(_hideLabelsCheck, Array.IndexOf(box.Children, HideMapCheck) + 1); - } - else if (HideMapCheck.Parent is Container) - ((Container)HideMapCheck.Parent).Add(_hideLabelsCheck); + // var box = HideMapCheck.Parent as Box; + // if (box != null) + // { + // box.PackStart(_hideLabelsCheck, false, false, 0); + // box.ReorderChild(_hideLabelsCheck, Array.IndexOf(box.Children, HideMapCheck) + 1); + // } + // else if (HideMapCheck.Parent is Container) + // ((Container)HideMapCheck.Parent).Add(_hideLabelsCheck); - _hideLabelsCheck.Show(); - } + // _hideLabelsCheck.Show(); + // } } \ No newline at end of file diff --git a/program/homepageallv8.glade b/program/homepageallv8.glade index fb5e455..bd25100 100644 --- a/program/homepageallv8.glade +++ b/program/homepageallv8.glade @@ -2,6 +2,18 @@ + + + True + False + go-previous-symbolic + + + True + False + media-playback-start-symbolic + False False @@ -460,79 +472,165 @@ + + MapBox True False - 12 + vertical + 14 + - - 340 + True - True - never + False + horizontal + 16 - + True False + True - + True False - 12 - 12 - 78 - 12 - vertical - 10 + True + start + center + 0 + end + label + + + True + True + 0 + + + + + True + True + 1 + + + + + True + False + False + end + + + + True + False + center + チェストピース未接触 + + + False + False + 0 + + + + + False + True + 2 + + + + + False + True + 0 + + + + + + True + False + horizontal + 16 + True + True + + + + 300 + True + False + True + never + + + True + False + none - - False - True - False - 0 - in - - - True - False - 8 - 8 - 6 - 6 - - - True - 0 - - - - - True - False - 選択中の症例 - - - - - False - True - 0 - - - - + + MapControlBox True False - 0 - in + vertical + 8 - + + False + True + False + 0 + none + + + True + False + - + True + 0 + + + + + + + + False + True + 0 + + + + + + MapSectionLabel True False - 8 - 8 - 6 - 6 - vertical + 0 + 体の画像 + + + False + True + 1 + + + + + MapSegment + True + False + 4 + True スケルトン @@ -540,10 +638,10 @@ True False True - True + False - False + True True 0 @@ -554,51 +652,89 @@ True True False - True + False BodySkeletonRadio - False + True True 1 + + False + True + 2 + - - - True - False - 体の画像選択 - - - - - False - True - 1 - - - - - True - False - 8 + + MapSectionLabel True False - サイズ: + 10 + 0 + サイズ False True - 0 + 3 + + + + + MapSegment + True + False + 4 + True + + + SizeLRadio + L + True + True + False + True + False + + + True + True + 0 + + + + + SizeXLRadio + XL + True + True + False + False + SizeLRadio + + + True + True + 1 + + + + + False + True + 4 - True + False + True False 0 @@ -609,30 +745,31 @@ False True - 1 + 5 - - - False - True - 2 - - - - - True - False - 0 - in + - + + MapSectionLabel True False - 8 - 8 - 6 - 6 + 10 + 0 + 視点 + + + False + True + 6 + + + + + MapSegment + True + False + 4 True @@ -695,202 +832,247 @@ + + False + True + 7 + - - + + + MapDivider True False - 視点 + 12 + 4 + + False + True + 8 + + + + + + MapSectionLabel + True + False + 0 + 表示 + + + False + True + 9 + + + + + + MapToggleRow + True + False + 12 + + + MapToggleLabel + True + False + 0 + 番号を表示 + ShowNumbersSwitch + + + True + True + 0 + + + + + ShowNumbersSwitch + True + True + center + False + + + False + False + 1 + + + + + False + True + 10 + + + + + + MapToggleRow + True + False + 12 + + + MapToggleLabel + True + False + 0 + 音量マップを表示 + ShowVolumeMapSwitch + + + True + True + 0 + + + + + ShowVolumeMapSwitch + True + True + center + True + + + False + False + 1 + + + + + False + True + 11 + + + + + + MapToggleRow + True + False + 12 + + + MapToggleLabel + True + False + 0 + 聴診点リストを表示 + ShowPointListSwitch + + + True + True + 0 + + + + + ShowPointListSwitch + True + True + center + False + + + False + False + 1 + + + + + False + True + 12 + + + + + + MapToggleRow + True + False + 12 + + + MapToggleLabel + True + False + 0 + 黒画素でも再生 + BlackAudioSwitch + + + True + True + 0 + + + + + BlackAudioSwitch + True + True + center + True + + + False + False + 1 + + + + + False + True + 13 + + + + + + True + False + True + vertical + 9 + + + True + True + 14 + + + + + 再生テスト + True + True + True + SoundTestIcon + left + True + + + False + True + 15 + - - False - True - 3 - - - - - 番号を隠す - True - True - False - True - True - - - False - True - 4 - - - - - 音量マップを隠す - True - True - False - True - - - False - True - 5 - - - - - 聴診点リストを隠す - True - True - False - True - True - - - False - True - 6 - - - - - 黒画素でも再生 - True - True - False - True - True - - - False - True - 7 - - - - - 再生テスト - True - True - True - - - False - True - 8 - - - - - True - False - True - vertical - 9 - - - True - True - 10 - - - - - - - - - - False - True - 0 - - - - - True - False - 12 - 8 - 12 - True - vertical - 8 - - - True - False - horizontal - 12 - - - True - False - True - - - True - False - True - center - end - label - - - True - False - 0 - - - True - True - 0 - - - - - 380 - True - False - False - - - True - False - True - center - center - チェストピース未接触 - - - True - False - 0 - - - - - False - True - 1 - @@ -899,185 +1081,38 @@ 0 + - + + MapPointCard True False - horizontal - 12 + vertical + 10 True True - + True False - vertical - True - True - - - True - False - 聴診点 - - - False - True - 0 - - - - - True - False - True - True - - - True - True - 1 - - + 0 + 聴診点 - True + False True 0 - - 380 + True False - False - vertical - 12 + True True - - - True - False - vertical - True - - - True - False - 心音波形 - - - False - True - 0 - - - - - 150 - True - False - False - True - - - True - True - 1 - - - - - True - True - 0 - - - - - True - False - vertical - True - - - True - False - 呼吸音波形 - - - False - True - 0 - - - - - 150 - True - False - False - True - - - True - True - 1 - - - - - True - True - 1 - - - - - True - False - vertical - 10 - 30 - 30 - 6 - - - 解説 - True - True - True - - - False - True - 0 - - - - - 戻る - True - True - True - - - False - True - 1 - - - - - False - False - 2 - - - False + True True 1 @@ -1089,6 +1124,206 @@ 1 + + + + 340 + True + False + False + True + vertical + 16 + + + HeartWaveCard + True + False + vertical + 8 + True + + + True + False + 8 + + + HeartSwatch + 14 + 14 + True + False + center + + + False + False + 0 + + + + + True + False + 0 + 心音波形 + + + True + True + 1 + + + + + False + True + 0 + + + + + 150 + True + False + False + True + + + True + True + 1 + + + + + True + True + 0 + + + + + BreathWaveCard + True + False + vertical + 8 + True + + + True + False + 8 + + + BreathSwatch + 14 + 14 + True + False + center + + + False + False + 0 + + + + + True + False + 0 + 呼吸音波形 + + + True + True + 1 + + + + + False + True + 0 + + + + + 150 + True + False + False + True + + + True + True + 1 + + + + + True + True + 1 + + + + + True + False + vertical + 10 + + + + MapExplainButton + 解説を見る + True + True + True + + + False + True + 0 + + + + + + 戻る + True + True + True + MapBackIcon + left + True + + + False + True + 1 + + + + + False + True + 2 + + + + + False + True + 2 + + True diff --git a/program/touch_friendly.css b/program/touch_friendly.css index eff9165..51cfba3 100644 --- a/program/touch_friendly.css +++ b/program/touch_friendly.css @@ -75,8 +75,7 @@ #LanguageToggle:checked label { color: #ffffff; } /* ---------- back buttons ---------- */ -/* MapBackButton is deliberately NOT here — the map page pairs it with - MapExplainButton via .nav-button so both render at the same size. */ +/* MapBackButton is styled in the MAP PAGE section (red, under 解説を見る). */ #SoundBackButton, #SettingBackButton { min-width: 100px; min-height: 58px; @@ -113,141 +112,239 @@ #StatusLabel.status-off { color: #c62828; font-weight: bold; font-size: 17px; } /* ══════════════════════════════════════════════════════════════════ - MAP PAGE - Two selector styles are in play here, and the difference matters: + MAP PAGE — design A "grouped side panel" - #Id — works only for widgets MapWindow passes to SetName() in - its constructor. GTK3's Builder does not copy a glade id - into the CSS name, so an id alone matches nothing. - .class — applied via AddClass() in the same constructor. Used for - the header/title/button widgets because this build's - Builder rejects in the glade. + Rule of the page: a LABEL never has a fill or border; anything you + can press always has one. One filled primary button (解説を見る). + + Selector sources: + #Name — set either by MapWindow.SetName()/Language.Register() + or by the in the glade. + .class — added in MapWindow via AddClass() (map-title, + contact-chip, panel-header, nav-button). Sizes target the `label` node directly because _scaleCssProvider emits a plain `label {}` rule that beats any inherited value. ══════════════════════════════════════════════════════════════════ */ -/* ── 視点 radios ── - GtkRadioButton with draw-indicator=False renders as a button node that - is a CHILD of the widget carrying the id, so `#Id button` is needed. */ +/* flat warm ground so the white cards read clearly over back.png */ +#MapBox { + background-color: rgba(239, 234, 224, 0.92); + padding: 16px 20px 20px 20px; +} + +/* ── cards ── */ +#MapControlBox, #MapPointCard, #HeartWaveCard, #BreathWaveCard { + background-color: #FFFFFF; + border: 1px solid #E2DDD2; + border-radius: 14px; +} +#MapControlBox { padding: 18px; } +#MapPointCard, #HeartWaveCard, #BreathWaveCard { padding: 14px 16px; } + +/* ── header ── */ +label.map-title { + font-family: 'Noto Sans JP', 'IPAPGothic', sans-serif; + font-size: 30px; + font-weight: 900; + color: #1E2430; + background-color: transparent; + padding: 0 4px; +} + +/* status pill — soft tint + dark text, clearly not a button */ +label.contact-chip { + font-family: 'Noto Sans JP', 'IPAPGothic', sans-serif; + font-size: 17px; + font-weight: 700; + color: #A3201B; + background-color: #FCE8E6; + border: 1px solid #F2B8B5; + border-radius: 22px; + padding: 8px 20px; +} +label.contact-chip.contact-ok { + color: #1E6B32; + background-color: #E6F4EA; + border-color: #A8D5B5; +} + +/* ── section labels (plain grey text) ── */ +#MapSectionLabel, #JacketSizeLabel { + font-family: 'Noto Sans JP', 'IPAPGothic', sans-serif; + font-size: 15px; + font-weight: 700; + color: #6B6F78; + background-color: transparent; +} + +/* panel titles: 聴診点 / 心音波形 / 呼吸音波形 */ +label.panel-header { + font-family: 'Noto Sans JP', 'IPAPGothic', sans-serif; + font-size: 20px; + font-weight: 700; + color: #1E2430; + background-color: transparent; + padding: 0; +} +#HeartSwatch { background-color: #C62828; border-radius: 3px; } +#BreathSwatch { background-color: #1F6FB2; border-radius: 3px; } + +#MapDivider { background-color: #E4E6EA; min-height: 1px; } + +/* ── segmented controls: grey track, buttons inside ── */ +#MapSegment { + background-color: #ECEEF1; + border-radius: 10px; + padding: 4px; +} + +/* GtkRadioButton with draw-indicator=False — `#Id button` kept as well, + in case the theme puts the button node one level down. */ +#BodySkeletonRadio, #BodyJacketRadio, #SizeLRadio, #SizeXLRadio, #ViewFrontRadio, #ViewBackRadio, #ViewRightRadio, #ViewLeftRadio, +#BodySkeletonRadio button, #BodyJacketRadio button, +#SizeLRadio button, #SizeXLRadio button, #ViewFrontRadio button, #ViewBackRadio button, #ViewRightRadio button, #ViewLeftRadio button { - color: #111111; - background-color: #F0F0F0; - background-image: none; - border: 2px solid #B5B5B5; - border-radius: 0; min-height: 46px; + background-color: transparent; + background-image: none; + border-width: 0; + border-radius: 7px; + box-shadow: none; + outline-style: none; } +#BodySkeletonRadio label, #BodyJacketRadio label, +#SizeLRadio label, #SizeXLRadio label, #ViewFrontRadio label, #ViewBackRadio label, #ViewRightRadio label, #ViewLeftRadio label { - color: #111111; - font-size: 22px; + font-size: 18px; + font-weight: 500; + color: #4A505B; +} +#BodySkeletonRadio:hover, #BodyJacketRadio:hover, #SizeLRadio:hover, #SizeXLRadio:hover, +#ViewFrontRadio:hover, #ViewBackRadio:hover, #ViewRightRadio:hover, #ViewLeftRadio:hover { + background-color: rgba(255, 255, 255, 0.55); +} + +/* body + size: selected = raised white chip, navy text */ +#BodySkeletonRadio:checked, #BodyJacketRadio:checked, +#SizeLRadio:checked, #SizeXLRadio:checked, +#BodySkeletonRadio button:checked, #BodyJacketRadio button:checked, +#SizeLRadio button:checked, #SizeXLRadio button:checked { + background-color: #FFFFFF; + box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18); +} +#BodySkeletonRadio:checked label, #BodyJacketRadio:checked label, +#SizeLRadio:checked label, #SizeXLRadio:checked label { + color: #0B3B6B; font-weight: 700; } + +/* 視点: selected = solid navy (it changes what you are looking at) */ #ViewFrontRadio:checked, #ViewBackRadio:checked, #ViewRightRadio:checked, #ViewLeftRadio:checked, #ViewFrontRadio button:checked, #ViewBackRadio button:checked, #ViewRightRadio button:checked, #ViewLeftRadio button:checked { - background-color: #2e7d32; - border-color: #1f5c23; + background-color: #0B3B6B; } #ViewFrontRadio:checked label, #ViewBackRadio:checked label, #ViewRightRadio:checked label, #ViewLeftRadio:checked label { - color: #ffffff; -} - -/* ── left control column ── */ -#BodySkeletonRadio label, #BodyJacketRadio label, -#HideCircleCheck label, #BlackAudioCheck label, #HideMapCheck label, #HideMetersCheck label, -#JacketSizeLabel { - font-size: 19px; - color: #1e1e1e; -} -#BodyFrame > label, #ViewFrame > label { - font-size: 19px; + color: #FFFFFF; font-weight: 700; - color: #1e1e1e; } -/* 再生テスト — accent fill, white text is correct here */ +/* ── 表示 rows: label left, sliding switch right ── */ +#MapToggleRow { min-height: 48px; } +#MapToggleLabel { + font-family: 'Noto Sans JP', 'IPAPGothic', sans-serif; + font-size: 18px; + font-weight: 400; + color: #1E2430; +} + +/* GtkSwitch: the `switch` node is the track, `slider` is the knob */ +#ShowNumbersSwitch, #ShowVolumeMapSwitch, #ShowPointListSwitch, #BlackAudioSwitch { + min-width: 56px; + min-height: 30px; + padding: 0; + border: none; + border-radius: 17px; + background-color: #C4C8CF; + background-image: none; + box-shadow: none; + outline-style: none; + color: transparent; /* hide the theme's I / O glyphs */ + font-size: 0; +} +#ShowNumbersSwitch:checked, #ShowVolumeMapSwitch:checked, +#ShowPointListSwitch:checked, #BlackAudioSwitch:checked { + background-color: #2E7D32; +} +#ShowNumbersSwitch image, #ShowVolumeMapSwitch image, +#ShowPointListSwitch image, #BlackAudioSwitch image { + color: transparent; + -gtk-icon-source: none; +} +#ShowNumbersSwitch slider, #ShowVolumeMapSwitch slider, +#ShowPointListSwitch slider, #BlackAudioSwitch slider { + min-width: 26px; + min-height: 26px; + margin: 2px; + border: none; + border-radius: 50%; + background-color: #FFFFFF; + background-image: none; + box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35); +} + +/* ── buttons ── */ + +/* 再生テスト — secondary: outline */ #SoundTestButton { + min-height: 54px; + background-color: #FFFFFF; + background-image: none; + border: 2px solid #0B3B6B; + border-radius: 10px; + outline-style: none; +} +#SoundTestButton label { color: #0B3B6B; font-size: 20px; font-weight: 700; } +#SoundTestButton image { color: #0B3B6B; margin-right: 6px; } +#SoundTestButton:hover { background-color: #EEF3F9; } +#SoundTestButton:active { background-color: #DCE6F2; } + +/* 解説を見る — the one primary action: solid navy */ +#MapExplainButton { + min-height: 60px; background-color: #0B3B6B; background-image: none; - border: 2px solid #072a4d; - border-radius: 0; - min-height: 58px; + border-width: 0; + border-radius: 12px; + outline-style: none; } -#SoundTestButton label { color: #ffffff; font-size: 24px; font-weight: 700; } -#SoundTestButton:hover { background-color: #14538F; } +#MapExplainButton label { color: #FFFFFF; font-size: 22px; font-weight: 700; } +#MapExplainButton:hover { background-color: #14538F; } +#MapExplainButton:active { background-color: #082C51; } -/* サイズ combo — the visible box is a button node inside the combobox */ -#JacketSizeCombo, -#JacketSizeCombo button { - color: #111111; - background-color: #ffffff; - background-image: none; - border: 1px solid #B5B5B5; - border-radius: 0; - min-height: 36px; - min-width: 90px; -} -#JacketSizeCombo label, -#JacketSizeCombo button label, -#JacketSizeCombo cellview { - color: #111111; - font-size: 19px; - font-weight: 400; -} -#JacketSizeCombo arrow { color: #111111; min-width: 16px; min-height: 16px; } - -/* the popup list is a separate toplevel — style it too or it inherits white */ -#JacketSizeCombo window.popup, -#JacketSizeCombo window.popup list, -#JacketSizeCombo window.popup row label { - color: #111111; - background-color: #ffffff; - font-size: 19px; -} -window.popup list row label { color: #111111; } - -/* ── map page: class-based widgets (see header note) ── */ -label.map-title { - font-family: 'Noto Sans JP', 'IPAPGothic', sans-serif; - font-size: 40px; - font-weight: 700; - color: #1e1e1e; - background-color: rgba(255,255,255,0.55); - padding: 6px 40px; -} -label.panel-header { - font-family: 'Noto Sans JP', 'IPAPGothic', sans-serif; - font-size: 28px; - font-weight: 700; - color: #111111; - background-color: #F0F0F0; - padding: 6px 0; -} -label.contact-chip { - font-size: 20px; - font-weight: 700; - color: #ffffff; +/* 戻る — red, below 解説を見る, bottom-right like every other page */ +#MapBackButton { + min-height: 56px; + padding: 0 16px; background-color: #C62828; - padding: 6px 18px; + background-image: none; + border-width: 0; + border-radius: 12px; + outline-style: none; } -label.contact-chip.contact-ok { background-color: #2e7d32; } +#MapBackButton label { color: #FFFFFF; font-size: 20px; font-weight: 700; } +#MapBackButton image { color: #FFFFFF; margin-right: 6px; } +#MapBackButton:hover { background-color: #D33A3A; } +#MapBackButton:active { background-color: #A61F1F; } -button.nav-button { - min-height: 62px; - background-color: #F0F0F0; - border: 2px solid #B5B5B5; -} -button.nav-button label { - font-size: 24px; - color: #111111; -} -button.nav-button:hover { background-color: #E2E2E2; } +/* the popup of any combo is a separate toplevel — keep it readable */ +window.popup list row label { color: #111111; } /* ---------- disabled states ---------- */ /* splash: modes unavailable until the device connects */