Skip to content

fix(extension): match the OpenCloud 9 app icon and button styling - #41

Merged
gnacho merged 5 commits into
mainfrom
fix/opencloud-9-icon-and-buttons
Nov 8, 2026
Merged

gnacho merged 5 commits into
mainfrom
fix/opencloud-9-icon-and-buttons

Conversation

@gnacho

@gnacho gnacho commented Nov 8, 2026

Copy link
Copy Markdown
Owner

Why

The extensions were built against the OpenCloud 7.4 SDK. On OpenCloud 9 the app menu item had no icon and the in-app buttons were off-theme.

What changed

  • Icon names: OcIcon builds the asset URL as icons/<name>-<fillType>.svg, with fillType defaulting to fill. Passing a suffixed name (rss-line) requests rss-line-fill.svg, which does not exist, so the menu item rendered without an icon. The name is now the bare one, matching the core apps (for example icon: 'folder-6' in web-app-files). One intermediate commit added the suffix and is reverted by the next one.
  • Menu color: var(--oc-role-secondary) instead of a hardcoded hex, matching the core apps.
  • Button props: variation does not exist in the OpenCloud 9 oc-button, it is color-role now. Passing variation was silently ignored and every button fell back to the default role.
  • Button styles: dropped the v7 teal-to-lilac gradient and the role overrides that faked it. The primary action uses background: var(--oc-role-primary), the same as the host's floating action button.

Verification

  • Builds pass.
  • Deployed to an OpenCloud 9.0.0 instance: every icon asset requested by the menu (rss-fill.svg, sticky-note-fill.svg, image-fill.svg, ...) returns 200.
  • The served bundles contain the bare icon names, the theme token for the color, and no leftover gradient classes.

@gnacho
gnacho merged commit 9748e8b into main Nov 8, 2026
@gnacho
gnacho deleted the fix/opencloud-9-icon-and-buttons branch November 8, 2026 12:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant