-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow more customization of the Nextcloud 25 UI theming to get back "classic" style #34727
Comments
Just wanted to say thank you for your CSS customizations above, which make everything cleaner and nicer (at least until Nextcloud provides for a proper squared theme). Would you happen to know how to also make the rounded areas showing the selected element (like "All files" in the screenshot above) also square? That would be great! :) |
ah, with this:
it looks really nice. Some elements are still round (like in Contacts), but I'll get there too :) |
I would also like to see the option to choose between modern and classic styles. |
Nextcloud server itself should always provide these:
"Normal" users/hobbyist admins should be able to EASILY set (→as in "a Nextcloud admin setting") these at least:
Examples: |
If you want to get rid of the rounded corners and content margin using custom CSS, then instead of directly overriding the styles for
With this, all the other elements relying on these will get adjusted too. At least the Music app utilizes these variables for its adjustments to the new NC25 layout and I bet that many other apps do the same. |
Hello, @arnowelzel ! Great article! but I have a question. would there be a way to enable OnlyOffice to take the whole browser space using CSS? |
No, this is not just a CSS matter. The integration application itself needs to use a different approach to open the UI. One way to this is to use a non modal application frame which is below the main toolbar ( The other way is to use a modal integration like it is done in the PDF viewer, image viewer or Nextcloud Office. "Modal" means, you enter another "mode" which prevents you from using anything else - before you can use another application you have to manually close it. The application may prevent that if you have unsaved changes and ask you what to do before it will end. Technically this is also a DIV element but created in a different way and with different interaction with the Nextcloud UI. If you want to have OnlyOffice as modal application you need to ask the maintainers of the OnlyOffice integration app to do so. |
I have exactly this problem with unreadable icons. Is there a way to make them readable again? This was all fine before Nextcloud 25. I want my picture on the welcome screen but it is useless when logged in. In fact it only destroys the icons and does nothing else. |
You can try CustomCSS. Examine the icons in the toolbar with the web developer tools of your browser and check what CSS classes they use. Then you can add additional styling rules in CustomCSS to add drop shadows etc.. For example: the icon area are itself uses the CSS class So if you add a background color to that class, the icons will at least have their own background:
You can also do this with the hole header which is the following part: For example for a header with a grey background and no opacity:
|
Thank you!! This is exactly what I needed. Now Nextcloud is usable again. Used my custom colors though. Thanks. |
You're welcome. Just keep in mind that these are just "quick & dirty" examples. The icons on top also may contain opacity rules, so you may need to fine tune this as well if needed. |
Well, it’s good enough, no comparison to the guesswork before. I also removed the rounded corners as described in #34727 (comment). I like it better. |
Thanks a lot @arnowelzel for this quick fix! And I totally agree with your statements on the NC forums and was disappointed in the NC team's response. Did you notice slow-down after adding this CSS, I am having issues lately with the UI and am wondering if it can be that... |
No, I don't experience any slow down because of that. But the NC 25 seems to be more sensitive to slow storage backends. I had to move one instance to another server lately because the storage backend which worked ok with NC 24 caused severe delays with NC 25. Instead of loading times of 3-4 seconds for the file app it took nearly 20 seconds with NC 25. After I switched to a faster storage backend NC 25 worked as fast as expected. And about design decisions: I understand that rounded corners are the way to go in modern design. Every modern web application has rounded buttons, rounded input elements and so on. Also see OS X and Windows 11 with its rouned window corners. However: this does not mean it makes sense to have an application area with rounded corners inside a rectangular browser viewport. Good design also needs to consider usability. Having less space available or cutting content off in the corners because of the use of rounded corners does not always help that. Also a user should always clearly recognize which elements are clickable and which are not. The current NC 25 still has some issues with that - for example with the quota display in the files app which is clickable even though clicking it does not do anything at all (that's why a added a workaround for that as well in my custom CSS rules). Good design also needs experience - people learn this at university, because it's not something you can just do by intuition only. The current layout of the "contacts" app for example is unfortunately an example how not to do it. I am very grateful for the good work the many maintainers of Nextcloud did over the last years and without Nextcloud and great apps like Nextcloud Office I would really miss something. But the UI design may need some more experienced people in the team in some cases. |
Update: I added some additional CSS rules which I currently use to fix some more glitches in the new UI (like cut off quota bar in the "files" app or non uniform menu elements in the "new" menu). Some may already have been fixed in the latest release of Nextcloud, but if not, feel free to try it with these rules. |
@arnowelzel thank you for sharing the custom styles. The design introduced with Hub 4, especially the huge bubble, is extremely unpleasant. Especially on small displays like my 12" Notebook. Hopefully the situation is getting better in the upcoming releases. |
Now nearly one year has passed and the new "hub 6" will be announced today. However it seems no one has time to fix the visual problems - even at https://conf.nextcloud.com you can see problems in the UI. Yes, I understand that UI glitches are not a major show stopper - but if these are still present nearly one year after introducing the new UI it leaves the impression that nobody seems to cares at all. Background of navigation shows strange bright boxes when hovering certain icons in the man toolbar: Parts of the text is visible in the file list header when scrolling up: Parts of the scroll bars are cut off and content barely fits inside the content are due to the round corners around the content area: |
I recommend this solution so as not to affect the registration header as well! #header .header-left { #header .header-right { |
I am still on Nextcloud 24.0.12 so that I can avoid the rounded corners, I plan to run this version until nextcloud has a selectable square theme again. Even though it is an old version I have had no problems. |
You should not run an outdated version with known security issues (also see https://www.cvedetails.com/vulnerability-list/vendor_id-15913/Nextcloud.html). Just use CustomCSS and apply the CSS rules as described above. My current installation with Nextcloud 28.0.1 looks like this: Since it is possible to add custom CSS using an app, I will maybe create an app for this, so one does not have to maintain custom CSS rules manually. |
THAT would be awesome! |
That does look really good, and it is consistent between pages? I also make heavy use of the calendar. |
I really don't understand why they introduced the front end with rounded corners. It offers no benefit at all and just wastes space unnecessarily. At the same time, there are display problems everywhere. I think it would make a lot of sense if we rethink this fundamentally and take the old path, so that everything around it is angular and goes all the way to the edge like it did back then. This is much better for usability. I think an extra app for this is good, but in my opinion it's not the best way. The cloud becomes slower with every additional app and so far NextCloud doesn't exactly shine with performance. We should find a good solution together here :) |
I was shocked when I upgraded to 25 and seen that, and immediately rolled back to 24, I have stayed on 24 since. I think some people actually like the rounded look, what is shocking is that they did not also include an option to change the appearance to classic/square, they could have made everyone happy that way. |
There are definitely people who like the round design. Personally, I think the design looks very old-fashioned. Since I don't see any advantage, I think the previous variant makes sense (no problems with apps, no unnecessary wasted space that you urgently need because all the pop-ups have been abolished and moved to the sidebar on the right). It would be good if you left it up to the user to choose what he wanted among the designs and everyone could activate the curves if necessary. I think we should leave the default here as square for the best user experience. |
Yes, other apps look the same. This specific instance is currently used by about 70 users and so far I never had any complaints about visual problems. However I did some additional changes for Nextcloud 28 in my instance as well: These are my current CustomCSS rules which also address issues with some apps like Collectives, Draw.io or OnlyOffice. You need to adjust this for your own needs since I also hide certain elements in the UI which you may want to have like the "recent pages" or URL widgets in Collectives or Markdown text files.
|
Another solution is the Unrounded Corners app which, thankfully, is keeping up with Nextcloud releases: https://apps.nextcloud.com/apps/unroundedcorners |
Thanks for the tip. In older versions that app only changed buttons, but it seems it will now also make the whole UI "classic" again. However - it has the same issue with some applications like OnlyOffice, where the lower border of the frame is not covered (this one of the things I fixed with my own custom CSS rules): |
@arnowelzel Would you mind merging/adding your custom styles to "unroundedcorners" app? |
If that app has a GitHub repository, sure. |
Rounded corners are not something new and dates back to the first Apple MacIntosh in the 1980ies which also had rounded corners for the deskop, because it used a CRT with rounded corners as display device. Also GitHub and other online services nowadays uses round corners for many elements since CSS introduced the However, having the main content area with rounded corners inside the viewport of a browser makes no sense when having a flat screen which displays things with edged corners. Even for Microsoft Edge there is an option to disable this for full screen display to gain more usable space and to overcome the somewhat strange impression of having a website inside a box with rounded corners on a screen with normal edges. |
@Danielside: Nextcloud 25? Latest Fixes? You know that Nextcloud 25 is not supported any more since four months and does not get any security fixes any more since then? (Or do you have some kind of magic enterprise contract which still provides you with security maintenance for it?) |
Hi everyone, we did take this feedback to heart and hope you will be happy to hear that we updated the design a bit for the upcoming release. :) You can find more details through the linked issues of #45751, and the finished product is polished as we speak in the bugfixing phase. If you want to get involved with beta-testing and reporting issues that would be amazing → the final release will be mid-September at our Nextcloud Community Conference which you are all invited to. :) Thanks to everyone! ❤️ |
How to use GitHub
Is your feature request related to a problem? Please describe.
With Nextcloud 25 a new UI was introduced which is technically a great improvement and many visual problems got fixed.
However what is not ideal are some of the new things which got introduced and can not be easily changed:
1) Rounded corners for the content area
Not all applications take that into account so the rectangular UI of the application gets cut off in the corners. Also scroll bars are cut off:
Also some applications, despite being compatible to Nextcloud 25 still use the "old" UI, which is a bit confusing:
In addition for the visual effect to work at all, the whole content area has a margin of about 8px. This does not sound a lot, but there is no real usability benefit from removing usable space just to be able have rounded corners around the application area.
2) Translucent navigation area
Even if no background image is enabled, the navigation area has still a translucent style with a backdrop filter which sometimes causes confusing light rectangles to appear in the navigation area background when hovering a menu item:
This can be fixed with a custom CSS to remove the background like this:
Also having translucent effects with fixed background images does not help performance. Yes, one can disable that, but by default all users will first have the new "fancy" UI and have to manually disable that since there is not option for administrator to globally choose a certain default for all users.
Describe the solution you'd like
Have an option for the administrator to select a default theme for all users.
Add an option to choose between the "new" look with rounded corners or the "classic" look as it was before (or at least without rounded corners and margins around the content area). I created a custom CSS (using the app "Custom CSS") which changes the look to a somewhat mixed look between old and new. But it would be much easier for users if they can just select this as an option if they prefer the "classic" style.
My CSS for "Custom CSS" so far, so you can see, how I customized the styles:
The following styles are just additional things I added for my setup to cope with some issues in individual applications:
The result looks like this:
Background images are also supported with these rules:
Describe alternatives you've considered
Create the possibility to provide new themes similar to apps.
The text was updated successfully, but these errors were encountered: