canonical / canonical-indico-customization-files

This repository holds the Indico customization files used for the Canonical event management system deployment
Apache License 2.0
2 stars 5 forks source link

General Timetable Theme Adjustments #7

Closed kewisch closed 1 year ago

kewisch commented 1 year ago

I'd like to propose some theme adjustments in Indico. I think a lot of these we can do in the general customization, they don't need to be specific to the summit.

For context, there are a few different views. Detailed vs Simple, and a toggle between room layout (last links) and normal layout

image

image

image

image

image

kewisch commented 1 year ago

By the way, I have found a way to customize the colors from the colorpicker. It is very ugly, but I don't see a different way to do this. It needs to be done in a plugin, I did not see a way to load python code from the customization files

from indico.core.db.sqlalchemy.colors import ColorTuple
def hack_get_colors():
    return [
        ColorTuple('#000000', '#000000'),
    ]

import indico.web.forms.colors
indico.web.forms.colors.get_colors = hack_get_colors

import indico.modules.events.sessions.forms
indico.modules.events.sessions.forms.get_colors = hack_get_colors

import indico.modules.events.sessions.controllers.management.sessions
indico.modules.events.sessions.controllers.management.sessions.get_colors = hack_get_colors

import indico.modules.events.timetable.controllers.manage
indico.modules.events.timetable.controllers.manage.get_colors = hack_get_colors

import indico.modules.events.timetable.util
indico.modules.events.timetable.util.get_colors = hack_get_colors

import indico.modules.events.timetable.forms
indico.modules.events.timetable.forms.get_colors = hack_get_colors

import indico.modules.events.util
indico.modules.events.util.get_colors = hack_get_colors
kewisch commented 1 year ago

I'm going to close this in favor of https://github.com/canonical/canonical-indico-ngtimetable