Skip to content

Conversation

@LeonardFiedrowicz
Copy link

Added a style sheet to be used for Nextcloud instances. Name of the file is a placeholder to be used with style mapping for a specific Nextcloud instance. I only adjusted the style sheet to some of the Nextcloud add-ons I use like calendar, files, notes, memories and music. Feedback welcome.
#1745

@0qln
Copy link
Contributor

0qln commented Sep 28, 2025

@LeonardFiedrowicz Did you get this to work with style mappings? If so, how?

I currently have set up a style mapping like this:
image

Searching for the nextcloud.localhost in the styles section shows up like this:
image

So there's no problem loading the feature there... however when I try to activate the features on the target website i get an error:
image

I'm a little puzzled on how to debug this :D the extension logs just show this:
image

Any idea what I am doing wrong here @sameerasw ?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it intentional that you have your personal website in here?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, that wasn't intentional. I wouldn't mind keeping it in, although that makes testing the style transfer harder.

@sameerasw
Copy link
Owner

I don't have an instance so can someone try out and confirm the style is working?

@LeonardFiedrowicz
Copy link
Author

LeonardFiedrowicz commented Sep 29, 2025

The style mapping only works for me when I enable or disable styling (both enable the styling) but only for what's currently on screen. When I reload the page it's back without the styling. Is this an issue with the style mapping or an issue with my .css?

I just removed most things from the .css for testing and the issue is still there.

@0qln
Copy link
Contributor

0qln commented Sep 29, 2025

@LeonardFiedrowicz I am experiencing the same issue when I use it without a mapping (e.g. naming the style sheet nextcloud.0qln.duckdns.org.css) and with the mapping it does not work at all :/

@0qln
Copy link
Contributor

0qln commented Sep 29, 2025

@sameerasw you can use my instance for testing this issue (nextcloud.0qln.duckdns.org)

@LeonardFiedrowicz
Copy link
Author

LeonardFiedrowicz commented Sep 29, 2025

@LeonardFiedrowicz I am experiencing the same issue when I use it without a mapping (e.g. naming the style sheet nextcloud.0qln.duckdns.org.css) and with the mapping it does not work at all :/

I'm seeing the same behavior as on my site. If I toggle the Enable for this site button it works but only until the site is reloaded.
image
image

I just noticed that if you don't restart your browser, even with the domain being in the style sheet, it behaves like with the style mapping. So you can apply the style if you toggle the Enable for this Site button briefly until you reload, which gets fixed after a browser restart but only for stuff in the style sheet, not the style mapping.

@sameerasw
Copy link
Owner

The style mapping only works for me when I enable or disable styling (both enable the styling) but only for what's currently on screen. When I reload the page it's back without the styling. Is this an issue with the style mapping or an issue with my .css?

I just removed most things from the .css for testing and the issue is still there.

I think I know the reason... It has happened for me on firefox for some websites.. I think it might be an addon issue... I will look into the implementation to fix it maybe this week... a lil busy :)

@sameerasw
Copy link
Owner

@LeonardFiedrowicz I am experiencing the same issue when I use it without a mapping (e.g. naming the style sheet nextcloud.0qln.duckdns.org.css) and with the mapping it does not work at all :/

I'm seeing the same behavior as on my site. If I toggle the Enable for this site button it works but only until the site is reloaded. image image

I just noticed that if you don't restart your browser, even with the domain being in the style sheet, it behaves like with the style mapping. So you can apply the style if you toggle the Enable for this Site button briefly until you reload, which gets fixed after a browser restart but only for stuff in the style sheet, not the style mapping.

Can you test one thing for me, once reloaded, toggle at least one of it's features... then see if it persists.

@LeonardFiedrowicz
Copy link
Author

@LeonardFiedrowicz I am experiencing the same issue when I use it without a mapping (e.g. naming the style sheet nextcloud.0qln.duckdns.org.css) and with the mapping it does not work at all :/

I'm seeing the same behavior as on my site. If I toggle the Enable for this site button it works but only until the site is reloaded. image image
I just noticed that if you don't restart your browser, even with the domain being in the style sheet, it behaves like with the style mapping. So you can apply the style if you toggle the Enable for this Site button briefly until you reload, which gets fixed after a browser restart but only for stuff in the style sheet, not the style mapping.

Can you test one thing for me, once reloaded, toggle at least one of it's features... then see if it persists.

If I toggle on transparency it enables it but only until I reload.

@0qln
Copy link
Contributor

0qln commented Nov 4, 2025

Hey @sameerasw, were you able to find the time to look into the addon issue? ^^

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.

3 participants