Page MenuHome

Move default theme and keymap to python preset files
Closed, ArchivedPublicTO DO

Description

If other developers agree, this would make it quite a bit easier to change the defaults and keep the various themes and keymaps in sync when making changes, otherwise changes get made in one place but not the other.

It is a fairly big change so would like to get some feedback from other developers on this. Some notes:

  • If you add any operator with shortcut key, you now have to edit a python file (kind of already the case for menus anyway)
  • Some things like timers are in keymap as well now and are critical to Blender function. We can leave those either in C or move them out of keymaps, where they do not really belong in my opinion.
  • I need to look into how this affects startup performance.

Event Timeline

Brecht Van Lommel (brecht) claimed this task.
Brecht Van Lommel (brecht) raised the priority of this task from to High.
Brecht Van Lommel (brecht) updated the task description. (Show Details)
Brecht Van Lommel (brecht) edited a custom field.
Brecht Van Lommel (brecht) updated the task description. (Show Details)

I'm going to wait on committing changes for T37419 until this one is completed or determined.

This is a good idea. I didn't even know this information was stored twice.

A few questions:

  1. How will this affect things like version patching for theme files?
  2. Will these keymap changes affect the "builtin" keymaps (i.e. those like ED_KEYMAP_FRAMES, ED_KEYMAP_UI, etc.)?
  3. Does this cover other user preferences as well?
  4. I'm curious what the startup performance impacts are :)

How will this affect things like version patching for theme files?

You'd still need to do version patching when adding new theme colors.

Will these keymap changes affect the "builtin" keymaps (i.e. those like ED_KEYMAP_FRAMES, ED_KEYMAP_UI, etc.)?

I think so, as far as I know ED_KEYMAP_FRAMES and others are just convenient flags to add a named keymap like "Frames", and the flags can stay. I don't see a reason to give these special treatment.

Does this cover other user preferences as well?

No.

Brecht Van Lommel (brecht) lowered the priority of this task from High to Normal.Feb 9 2014, 4:13 PM
Dalai Felinto (dfelinto) changed the task status from Unknown Status to Unknown Status.Jan 4 2017, 10:25 AM
Dalai Felinto (dfelinto) claimed this task.

Since this will change for 2.8 (workspaces will have keymaps) I will close/archive this for now.