Theme: set dark grey for line number background
This color is also used for the right margin, so use a color that contrasts with the background. Also use 2x width line.
This commit is contained in:
@@ -705,7 +705,7 @@ const bTheme U_theme_default = {
|
||||
},
|
||||
.shade2 = RGBA(0x5680c2e6),
|
||||
.hilite = RGBA(0xff0000ff),
|
||||
.grid = RGBA(0x313133ff),
|
||||
.grid = RGBA(0x202020ff),
|
||||
.vertex_size = 3,
|
||||
.outline_width = 1,
|
||||
.facedot_size = 4,
|
||||
|
||||
@@ -1665,12 +1665,14 @@ void draw_text_main(SpaceText *st, ARegion *ar)
|
||||
|
||||
immBindBuiltinProgram(GPU_SHADER_2D_LINE_DASHED_UNIFORM_COLOR);
|
||||
|
||||
GPU_line_width(2.0f);
|
||||
|
||||
float viewport_size[4];
|
||||
GPU_viewport_size_get_f(viewport_size);
|
||||
immUniform2f("viewport_size", viewport_size[2] / UI_DPI_FAC, viewport_size[3] / UI_DPI_FAC);
|
||||
|
||||
immUniform1i("colors_len", 0); /* "simple" mode */
|
||||
immUniformThemeColor(TH_GRID); /* same color as line number background */
|
||||
immUniform1i("colors_len", 0); /* "simple" mode */
|
||||
immUniformThemeColor3(TH_GRID); /* same color as line number background */
|
||||
immUniform1f("dash_width", 2.0f);
|
||||
immUniform1f("dash_factor", 0.5f);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user