UI: Consistent Cursor Color
Change Console and text editor cursor color to match that of widget_text_cursor. Console cursor is currently red which we normally use for error conditions. Pull Request: https://projects.blender.org/blender/blender/pulls/120491
This commit is contained in:
committed by
Harley Acheson
parent
4e8cc76c2d
commit
7642a5452a
@@ -773,7 +773,7 @@ const bTheme U_theme_default = {
|
||||
.sub_back = RGBA(0x0000001f),
|
||||
},
|
||||
.shade2 = RGBA(0x4d4d4de6),
|
||||
.hilite = RGBA(0x65a2ffff),
|
||||
.hilite = RGBA(0x71a8ffff),
|
||||
.grid = RGBA(0x1d1d1dff),
|
||||
.vertex_size = 3,
|
||||
.outline_width = 1,
|
||||
@@ -941,7 +941,7 @@ const bTheme U_theme_default = {
|
||||
.console_input = RGBA(0xf2f2f2ff),
|
||||
.console_info = RGBA(0x95d600ff),
|
||||
.console_error = RGBA(0xff4d84ff),
|
||||
.console_cursor = RGBA(0xff0000ff),
|
||||
.console_cursor = RGBA(0x71a8ffff),
|
||||
.console_select = RGBA(0xffffff30),
|
||||
.vertex_size = 3,
|
||||
.outline_width = 1,
|
||||
|
||||
@@ -1168,7 +1168,7 @@
|
||||
line_input="#f2f2f2"
|
||||
line_info="#95d600"
|
||||
line_error="#ff4d84"
|
||||
cursor="#ff0000"
|
||||
cursor="#71a8ff"
|
||||
select="#ffffff30"
|
||||
>
|
||||
<space>
|
||||
|
||||
@@ -29,7 +29,7 @@ extern "C" {
|
||||
|
||||
/* Blender file format version. */
|
||||
#define BLENDER_FILE_VERSION BLENDER_VERSION
|
||||
#define BLENDER_FILE_SUBVERSION 12
|
||||
#define BLENDER_FILE_SUBVERSION 13
|
||||
|
||||
/* Minimum Blender version that supports reading file written with the current
|
||||
* version. Older Blender versions will test this and cancel loading the file, showing a warning to
|
||||
|
||||
@@ -140,6 +140,11 @@ static void do_versions_theme(const UserDef *userdef, bTheme *btheme)
|
||||
FROM_DEFAULT_V4_UCHAR(space_view3d.face_mode_select);
|
||||
}
|
||||
|
||||
if (!USER_VERSION_ATLEAST(402, 13)) {
|
||||
FROM_DEFAULT_V4_UCHAR(space_text.hilite);
|
||||
FROM_DEFAULT_V4_UCHAR(space_console.console_cursor);
|
||||
}
|
||||
|
||||
/**
|
||||
* Always bump subversion in BKE_blender_version.h when adding versioning
|
||||
* code here, and wrap it inside a USER_VERSION_ATLEAST check.
|
||||
|
||||
Reference in New Issue
Block a user