Move default theme and keymap to python preset files #37585

Closed
opened 2013-11-22 19:37:05 +01:00 by Brecht Van Lommel · 14 comments

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.
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.
Author
Owner

Changed status to: 'Open'

Changed status to: 'Open'
Brecht Van Lommel self-assigned this 2013-11-22 19:37:05 +01:00
Author
Owner

Added subscriber: @brecht

Added subscriber: @brecht

Added subscriber: @JonathanWilliamson

Added subscriber: @JonathanWilliamson

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

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

Added subscriber: @scottyp

Added subscriber: @scottyp

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

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

Added subscriber: @JoshuaLeung

Added subscriber: @JoshuaLeung
Member

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 :)
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 :)
Author
Owner

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.

> 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.

Added subscriber: @DataDay

Added subscriber: @DataDay

Added subscriber: @ErickNyanduKabongo

Added subscriber: @ErickNyanduKabongo
Brecht Van Lommel removed their assignment 2015-10-05 02:17:11 +02:00

Added subscribers: @JulianEisel, @dfelinto

Added subscribers: @JulianEisel, @dfelinto

Changed status from 'Open' to: 'Archived'

Changed status from 'Open' to: 'Archived'
Dalai Felinto self-assigned this 2017-01-04 10:25:52 +01:00

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

Since this will change for 2.8 (workspaces will have keymaps) I will close/archive this for now.
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
7 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#37585
No description provided.