Coder Social home page Coder Social logo

Comments (7)

bromiesTM avatar bromiesTM commented on July 20, 2024 1

Exactly, that's why enforcing default should prevent the non-privileged user from switching themes manually while preserving the auto-adjusting functionality based on browser / OS settings.
At least that's what I expected.

from server.

kesselb avatar kesselb commented on July 20, 2024

cc @susnux @skjnldsv

from server.

skjnldsv avatar skjnldsv commented on July 20, 2024

Ah, we should just remove default from the example in config.sample.php.
Default is not a valid theme, enforcing it makes zero sense :)

from server.

pandusen avatar pandusen commented on July 20, 2024

Ah, we should just remove default from the example in config.sample.php. Default is not a valid theme, enforcing it makes zero sense :) <

Currently it does make sense. It is the only way to force browser based choice of theme. for me, that makes sense, as I am using a custom theme, that is designed to work in dark and light mode.

If I force either dark or light, it will overwrite the theme completely.
If I dont set any value, the users will be able to change the theme.

from server.

skjnldsv avatar skjnldsv commented on July 20, 2024

custom theme as within the themes directory of your Nextcloud root?

from server.

pandusen avatar pandusen commented on July 20, 2024

custom theme as within the themes directory of your Nextcloud root?
<

Correct. It used to be that you could just write your theme name "my_theme" directly in "enforce_theme" to apply the theme, and disable user theming. But as always with nextcloud, admin control is slowly getting deprecated.. Now you can only use the build-in themes: dark, dark-highcontrast, default, light, light-highcontrast, opendyslexic. Where default is the current theme.

from server.

skjnldsv avatar skjnldsv commented on July 20, 2024

@pandusen yeah, the custom theming feature you're using is slowly getting deprecated for a few years now.
I would no rely on it on the long run, sorry :)

from server.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.