Repository navigation
fix(extension): match the OpenCloud 9 app icon and button styling - #41
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
OcIconbuilds the asset URL asicons/<name>-<fillType>.svg, withfillTypedefaulting tofill. Passing a suffixed name (rss-line) requestsrss-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 exampleicon: 'folder-6'inweb-app-files). One intermediate commit added the suffix and is reverted by the next one.var(--oc-role-secondary)instead of a hardcoded hex, matching the core apps.variationdoes not exist in the OpenCloud 9oc-button, it iscolor-rolenow. Passingvariationwas silently ignored and every button fell back to the default role.background: var(--oc-role-primary), the same as the host's floating action button.Verification
rss-fill.svg,sticky-note-fill.svg,image-fill.svg, ...) returns 200.