studip / studip-rest.ip

DEPRECATED // An alternative, RESTful approach to web services for Stud.IP implementing OAuth
http://studip.github.com/studip-rest.ip
GNU General Public License v2.0
19 stars 7 forks source link

New route: Colorscheme of installation #20

Closed honkmaster closed 12 years ago

honkmaster commented 12 years ago

It should be possible to get the colorscheme of an installation. Currently an prototype is developed which can be configured with two base colors (standard:light and darkblue) and one backgroundcolor (standard:gray). This route can help to easily adapt the app to different installations of stud.ip. And also the known color scheme gives the user an warm feeling because he feels at home ;)....

tleilax commented 12 years ago

This seems to be a little bit tricky since Stud.IP does not have a set of default colors (or at least it's absolutely not obvious).

If you provide me the current default colors of the app, I can integrate them into an according route.

Problem left to untangle:

honkmaster commented 12 years ago

Colours in Hex: ColorDarkBlue 34578c ColorLightBlue 899ab9 ColorBackground e1e4e9

I would give the user a gui-element to set these values.

tleilax commented 12 years ago

I will build the new route asap. Is /studip/colors fine with you?

The problem with the gui element is that it would be part of the plugin (for now) but it definitely belongs to a different part of Stud.IP although I can't really tell which one. I guess there just is no layout-related settings page. But you'd never expect such a page in a plugin context. But that's nothing you have to worry about. I'll find a place to put these settings. :)

tleilax commented 12 years ago

And should the API return the colors with or without the hash sign? I'd prefer the version with the hash included but that's up to you...

honkmaster commented 12 years ago

Can you ask Cornelis where to put something like this? Or ask in the developer boards in our channel for mobile stud.Ip?

honkmaster commented 12 years ago

I dont care about the hash. I can parse it in the way i like;)...inside the app i am using a function like [UIColor colorWithHex:#abcdef]....

tleilax commented 12 years ago

I will use your thread to post my question. Maybe someone will come up with a good location but in the end I think there is no suitable location for something like this yet.

But I guess with the recent integration of LESS and the general wish for a theming engine, this might be a good start for some layout-oriented changes.