-
Notifications
You must be signed in to change notification settings - Fork 159
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
Themability ... #1
Comments
Involving @ChrisEdS … |
This we have already and its quite easy and straigt forward. Here we "only" need a documentation. |
I guess I'll start a wiki. ;-) |
That's a good idea. |
e.g. https://github.com/owncloud/core/blob/master/apps/theme-example/defaults.php should be a good place to start the recollection of those. |
An easier theming would be great. Here is a list of icons that I have to put directly in core/img and settings/img to style them (in a simple way) in oC 10.0.7: /core/img/places/home.svg /core/img/filetypes/x-office-document.svg /core/img/actions/public.svg /settings/img/help.svg |
Current methods (oC 10.0.x) are super complicated, but normally no need to hack the core:
|
From an admin perspective it would be great to simply put a styled icon in the theme to replace the original. I would not like to think about how this icon is handled in code to do this in the right way. To get there would be a great enhancement for Phoenix in my eyes. |
as far as I understood UIKIT - theming should easily be possible by using sass / less compilers - or am I missing something? (ref: https://getuikit.com/docs/less // https://getuikit.com/docs/sass ). What about "themeable strings" - could this be done with the same pre-compilers? Would it work of using a translation framework as a similar idea for overriding text / strings " |
Fancy live-theming: Code here: |
@patrickjahns … not sure what you mean by "themeable strings" :-| |
Theming includes changing the product name. ownCloud -> CernBox |
@felixheidecke will it be necessary to recompile phoenix and all apps if I want to apply a theme? Or can we reduce the theme into one bundle/app/plugin. The later would be kind of a hard requirement. |
Creating a new theme happens in That's it, new theme exists. Slogans could be generated using the |
@felixheidecke can you provide an example theme file ? |
We need some kind of basic component library for oc apps, no matter which framework we choose. Vuetify offers pre-defined vue component files, containing template + stylesheet + ViewModel. We could derive & extend them (e.g. with oc specific icons/functions/state). Vuetify also offers color theming capability via js api, so we could easily modify colors on-the-fly (we could even provide an oc instance changer in phoenix & connect phoenix to multiple different-themed backends) They are both useable for ServerSide rendered Applications & PWA. UiKit depends on LESS/SASS Stylesheets, and makes heavily use of variables in these languages. This offers awesome features like color deriving methods, the possibility to tree-shake the entire stylesheet, modify via PostCSS, etc… without the need for CSS3 var() or colors inside vuex state. (Notice: This is intended behaviour, like explained on their website: „This allows you to include customizations in the build process, rather than manually overwriting a lot of CSS rules by hand.“) Regarding to our need for RTL styles, UiKit wins the battle, because it offers RTL support out-of-the box. There‘s a ThirdParty Package available on NPM (vuetify-rtl-style) which upgrades vuetify with RTL supporting css code. UiKit has an very dom-driven API, for example
While Vuetify is written with the Vue Api in mind, UiKit needs some special API Wrapper for clean UiKit integration (e.g. VuiKit) While the community of these both Projects seems to look similar sized, VuiKit is a far less active maintained project. |
@PVince81 I'd like to hear you opinion on this as well - you have been voting for uikit. THX |
@tempelgogo thank you for your in-depth review. One thing remains: We would need to compile apps with vuetify, whereas UIKit does not directly come in contact with apps during compile-time. How does that affect theming and improving/updating vuetify? Would we need to recompile all apps to work? |
Regarding to our themeable requirements:
Any other customization setting (for example border-radius or font-family) is not covered by any of them; |
should be ready for most topics. closing. needs re-evaluation ... |
We need a mechanism which allow to theme the front end.
There might be a build step required to create a theme/branding for it.
Elements which need to be themable:
Requirement for the theme:
The text was updated successfully, but these errors were encountered: