From afa569588d6db27883521d551dc2448d1788d048 Mon Sep 17 00:00:00 2001 From: Benjamin Date: Wed, 1 Jul 2026 13:37:28 +0200 Subject: [PATCH 1/3] Improve topbar --- assets.json | 2 +- style_properties/_metadata.json | 12 ++++++++++++ style_properties/nodeListDescriptionDisplay.json | 14 ++++++++++++++ style_properties/nodeListSubDisplay.json | 14 ++++++++++++++ style_properties/publicIconUrl.json | 14 ++++++++++++++ style_properties/publicIconUrlLarge.json | 14 ++++++++++++++ templates/_metadata.json | 6 +++--- templates/public/topbar_actions.html | 10 +++++----- 8 files changed, 77 insertions(+), 9 deletions(-) create mode 100644 style_properties/nodeListDescriptionDisplay.json create mode 100644 style_properties/nodeListSubDisplay.json create mode 100644 style_properties/publicIconUrl.json create mode 100644 style_properties/publicIconUrlLarge.json diff --git a/assets.json b/assets.json index d1abce8..07844c1 100644 --- a/assets.json +++ b/assets.json @@ -1,3 +1,3 @@ { - "romhackplaza": "data/assets/romhackplaza" + "romhackplaza": "styles/romhackplaza" } \ No newline at end of file diff --git a/style_properties/_metadata.json b/style_properties/_metadata.json index ecb9028..90a19ae 100644 --- a/style_properties/_metadata.json +++ b/style_properties/_metadata.json @@ -95,6 +95,12 @@ "linkUgcHoverColor.json": { "hash": "fd483e9f6ebed528993ea0c5b3db6880" }, + "nodeListDescriptionDisplay.json": { + "hash": "670e207dd001de30388317de6135e93f" + }, + "nodeListSubDisplay.json": { + "hash": "ea17dc87cc3efc49db6a0174168a7ef1" + }, "pageBg.json": { "hash": "25b20f46219dd7b5cbccc5a1bc93d63d" }, @@ -131,6 +137,12 @@ "paletteNeutral3.json": { "hash": "1ec2ef5d3d83ad10b6b7232aaa08c440" }, + "publicIconUrl.json": { + "hash": "431736e0ac4c14f139c3dd525ca56724" + }, + "publicIconUrlLarge.json": { + "hash": "f0d4ac2c45c2ab501d4860092e674c41" + }, "publicLogoUrl.json": { "hash": "aabe78e8cf804421f6dfa2a20b5028da" }, diff --git a/style_properties/nodeListDescriptionDisplay.json b/style_properties/nodeListDescriptionDisplay.json new file mode 100644 index 0000000..cc387cd --- /dev/null +++ b/style_properties/nodeListDescriptionDisplay.json @@ -0,0 +1,14 @@ +{ + "group_name": "nodeList", + "title": "Description display style", + "description": "To save vertical space, it is possible to hide node descriptions until the node title is hovered, at which point they are displayed in a tooltip", + "property_type": "value", + "css_components": [], + "value_type": "radio", + "value_parameters": "tooltip={{ phrase('tooltip') }}\ninline={{ phrase('inline') }}\nnone={{ phrase('none') }}", + "has_variations": false, + "depends_on": "", + "value_group": "", + "property_value": "inline", + "display_order": 400 +} \ No newline at end of file diff --git a/style_properties/nodeListSubDisplay.json b/style_properties/nodeListSubDisplay.json new file mode 100644 index 0000000..efbb0f8 --- /dev/null +++ b/style_properties/nodeListSubDisplay.json @@ -0,0 +1,14 @@ +{ + "group_name": "nodeList", + "title": "Sub-forums display style", + "description": "Choose the style in which sub-forums will be displayed within a particular node element, according to the amount of space you want them to occupy", + "property_type": "value", + "css_components": [], + "value_type": "radio", + "value_parameters": "menu={{ phrase('popup_menu') }}\nflat={{ phrase('listed_below_node') }}\nnone={{ phrase('none') }}", + "has_variations": false, + "depends_on": "", + "value_group": "", + "property_value": "flat", + "display_order": 300 +} \ No newline at end of file diff --git a/style_properties/publicIconUrl.json b/style_properties/publicIconUrl.json new file mode 100644 index 0000000..aee28db --- /dev/null +++ b/style_properties/publicIconUrl.json @@ -0,0 +1,14 @@ +{ + "group_name": "basic", + "title": "Icon URL (192x192)", + "description": "The path to your icon image. This should be a 192x192 image and usually a PNG.", + "property_type": "value", + "css_components": [], + "value_type": "string", + "value_parameters": "asset=logo", + "has_variations": false, + "depends_on": "", + "value_group": "logo", + "property_value": "data/assets/logo/plaza-logo-text.webp", + "display_order": 210 +} \ No newline at end of file diff --git a/style_properties/publicIconUrlLarge.json b/style_properties/publicIconUrlLarge.json new file mode 100644 index 0000000..1438429 --- /dev/null +++ b/style_properties/publicIconUrlLarge.json @@ -0,0 +1,14 @@ +{ + "group_name": "basic", + "title": "Icon URL (512x512)", + "description": "The path to your large icon image. This should be a 512x512 image and usually a PNG.", + "property_type": "value", + "css_components": [], + "value_type": "string", + "value_parameters": "asset=logo", + "has_variations": false, + "depends_on": "", + "value_group": "logo", + "property_value": "data/assets/logo/plaza-logo-text.webp", + "display_order": 220 +} \ No newline at end of file diff --git a/templates/_metadata.json b/templates/_metadata.json index a06ce4a..5bbd666 100644 --- a/templates/_metadata.json +++ b/templates/_metadata.json @@ -73,8 +73,8 @@ }, "public/topbar_actions.html": { "addon_id": "RomhackPlaza/Master", - "version_id": 1000000, - "version_string": "1.0.0", - "hash": "ee896c17cf565f9351ec2bfd2da1b7c1" + "version_id": 1010170, + "version_string": "1.1.1", + "hash": "4ac16e08537b5e27002da4232a526515" } } \ No newline at end of file diff --git a/templates/public/topbar_actions.html b/templates/public/topbar_actions.html index ddd3842..5bb4bc3 100644 --- a/templates/public/topbar_actions.html +++ b/templates/public/topbar_actions.html @@ -1,4 +1,4 @@ -
@@ -84,7 +84,7 @@ - + @@ -92,7 +92,7 @@ - @@ -122,7 +122,7 @@
- + -
-
- +
- -
-
- +
From f1b9a254ae7a5912c2c036507313d9cda863cdc3 Mon Sep 17 00:00:00 2001 From: Benjamin Date: Sun, 5 Jul 2026 10:59:28 +0200 Subject: [PATCH 3/3] Fixes theme colors --- style_properties.less | 25 + style_properties/_metadata.json | 12 + style_properties/blockMinorHeader.json | 22 + .../blockMinorTabHeaderSelected.json | 22 + style_properties/blockTextHeader.json | 22 + style_properties/emailPublicLogoUrl.json | 14 + templates/_metadata.json | 6 +- templates/public/PAGE_CONTAINER.html | 11 + templates/public/extra.less | 676 ++++++------------ templates/public/topbar_actions.html | 22 +- 10 files changed, 360 insertions(+), 472 deletions(-) create mode 100644 style_properties/blockMinorHeader.json create mode 100644 style_properties/blockMinorTabHeaderSelected.json create mode 100644 style_properties/blockTextHeader.json create mode 100644 style_properties/emailPublicLogoUrl.json diff --git a/style_properties.less b/style_properties.less index 3b96877..15eb29c 100644 --- a/style_properties.less +++ b/style_properties.less @@ -23,6 +23,7 @@ @xf-contentAltBg: @xf-paletteColor3; @xf-contentBg: @xf-paletteColor2; @xf-contentHighlightBg: @xf-paletteColor3; +@xf-emailPublicLogoUrl: ~'data/assets/email_logo/plaza-logo.webp'; @xf-errorBg: #e57373; @xf-errorColor: @xf-paletteNeutral1; @xf-fontFamilyBody: 'Segoe UI', 'San Francisco', 'Helvetica Neue', sans-serif; @@ -63,11 +64,35 @@ @xf-textColorFeature: @xf-paletteNeutral1; @xf-textColorMuted: @xf-paletteNeutral2; +.xf-blockMinorHeader() +{ + font-size: @xf-fontSizeLarge; + color: @xf-textColor; +} + +.xf-blockMinorTabHeaderSelected() +{ + color: @xf-textColor; + border-color: @xf-minorHeadingTextColor; +} + .xf-blockTabHeaderSelected() { color: @xf-linkColor; border-color: @xf-paletteColor2; } +.xf-blockTextHeader() +{ + font-size: @xf-fontSizeLarge; + color: @xf-textColor; +} + +@xf-blockMinorHeader--font-size: @xf-fontSizeLarge; +@xf-blockMinorHeader--color: @xf-textColor; +@xf-blockMinorTabHeaderSelected--color: @xf-textColor; +@xf-blockMinorTabHeaderSelected--border-color: @xf-minorHeadingTextColor; @xf-blockTabHeaderSelected--color: @xf-linkColor; @xf-blockTabHeaderSelected--border-color: @xf-paletteColor2; +@xf-blockTextHeader--font-size: @xf-fontSizeLarge; +@xf-blockTextHeader--color: @xf-textColor; diff --git a/style_properties/_metadata.json b/style_properties/_metadata.json index 90a19ae..ea503f4 100644 --- a/style_properties/_metadata.json +++ b/style_properties/_metadata.json @@ -1,4 +1,10 @@ { + "blockMinorHeader.json": { + "hash": "7731a8c090a6de368ba735f3cfdc973d" + }, + "blockMinorTabHeaderSelected.json": { + "hash": "f40116bfcc55ac8be7b1dcc646efc37a" + }, "blockTabHeaderBg.json": { "hash": "f548168a30a1d58f885379c826512664" }, @@ -8,6 +14,9 @@ "blockTabHeaderTextColor.json": { "hash": "60987b64d0d5440a964a29356f62c9a6" }, + "blockTextHeader.json": { + "hash": "2632f59dbe2d84a048a962dc57ce3be9" + }, "borderColor.json": { "hash": "188643a00ec1edff6b6c9a56ac2ee460" }, @@ -68,6 +77,9 @@ "contentHighlightBg.json": { "hash": "3f25b8f5a6851ecae0eaf5e3791c9cd9" }, + "emailPublicLogoUrl.json": { + "hash": "a47025c3de1bbb9bc269501d9a13fcae" + }, "errorBg.json": { "hash": "0640f2a117475e7615a8004007937f3a" }, diff --git a/style_properties/blockMinorHeader.json b/style_properties/blockMinorHeader.json new file mode 100644 index 0000000..8197083 --- /dev/null +++ b/style_properties/blockMinorHeader.json @@ -0,0 +1,22 @@ +{ + "group_name": "block", + "title": "Block minor header", + "description": "Sub-headings in blocks use these settings", + "property_type": "css", + "css_components": [ + "text", + "background", + "border", + "extra" + ], + "value_type": "", + "value_parameters": "", + "has_variations": false, + "depends_on": "", + "value_group": "", + "property_value": { + "font-size": "@xf-fontSizeLarge", + "color": "@xf-textColor" + }, + "display_order": 20400 +} \ No newline at end of file diff --git a/style_properties/blockMinorTabHeaderSelected.json b/style_properties/blockMinorTabHeaderSelected.json new file mode 100644 index 0000000..eaf76cc --- /dev/null +++ b/style_properties/blockMinorTabHeaderSelected.json @@ -0,0 +1,22 @@ +{ + "group_name": "block", + "title": "Block minor tab header - selected tab", + "description": "Selected tabs from block sub-headings", + "property_type": "css", + "css_components": [ + "text", + "background", + "border_color_simple", + "extra" + ], + "value_type": "", + "value_parameters": "", + "has_variations": false, + "depends_on": "", + "value_group": "", + "property_value": { + "color": "@xf-textColor", + "border-color": "@xf-minorHeadingTextColor" + }, + "display_order": 20600 +} \ No newline at end of file diff --git a/style_properties/blockTextHeader.json b/style_properties/blockTextHeader.json new file mode 100644 index 0000000..3a4e141 --- /dev/null +++ b/style_properties/blockTextHeader.json @@ -0,0 +1,22 @@ +{ + "group_name": "block", + "title": "Block text header", + "description": "Text headers are used for subtle identification of content areas, without changing the background style or color", + "property_type": "css", + "css_components": [ + "text", + "background", + "border", + "extra" + ], + "value_type": "", + "value_parameters": "", + "has_variations": false, + "depends_on": "", + "value_group": "", + "property_value": { + "font-size": "@xf-fontSizeLarge", + "color": "@xf-textColor" + }, + "display_order": 20700 +} \ No newline at end of file diff --git a/style_properties/emailPublicLogoUrl.json b/style_properties/emailPublicLogoUrl.json new file mode 100644 index 0000000..58e8f67 --- /dev/null +++ b/style_properties/emailPublicLogoUrl.json @@ -0,0 +1,14 @@ +{ + "group_name": "email", + "title": "Email logo URL", + "description": "Defines the logo URL to be used in emails. We do not recommend specifying SVG images here.", + "property_type": "value", + "css_components": [], + "value_type": "string", + "value_parameters": "asset=email_logo", + "has_variations": false, + "depends_on": "", + "value_group": "", + "property_value": "data/assets/email_logo/plaza-logo.webp", + "display_order": 50 +} \ No newline at end of file diff --git a/templates/_metadata.json b/templates/_metadata.json index 2e8552d..4754af1 100644 --- a/templates/_metadata.json +++ b/templates/_metadata.json @@ -3,7 +3,7 @@ "addon_id": "XF", "version_id": 2031070, "version_string": "2.3.10", - "hash": "09489ca3208db67cf6add9779edd76be" + "hash": "fe120070b080c42ea99ad31622baa0d5" }, "public/account_alerts_popup.html": { "addon_id": "XF", @@ -39,7 +39,7 @@ "addon_id": "XF", "version_id": 2031070, "version_string": "2.3.10", - "hash": "278b91ff307ed1d1c634eee490ff8653" + "hash": "3e8d3229f5dd7752871a1be1ca03e2ab" }, "public/member_tooltip.html": { "addon_id": "XF", @@ -75,6 +75,6 @@ "addon_id": "RomhackPlaza/Master", "version_id": 1010170, "version_string": "1.1.1", - "hash": "284f227e9f4c33c9a0e69f8a9cd52706" + "hash": "47e3ddab51eb7ba2077a514c54850ee1" } } \ No newline at end of file diff --git a/templates/public/PAGE_CONTAINER.html b/templates/public/PAGE_CONTAINER.html index b578298..ce1aa93 100644 --- a/templates/public/PAGE_CONTAINER.html +++ b/templates/public/PAGE_CONTAINER.html @@ -262,6 +262,17 @@
+ + + + +
- + - + @@ -16,13 +16,13 @@ - + - + - + @@ -92,7 +92,7 @@ - @@ -143,11 +143,9 @@
-