1
0
mirror of https://github.com/emilk/egui.git synced 2026-08-30 13:20:05 -04:00

[color] Rename Color to Srgba + sRGBA correct fading of thin lines

Also remove the extra large `aa_size` hack,
so everything now looks slightly crispier.

I also took the opportunity to tweak some colors.
This commit is contained in:
Emil Ernerfeldt
2020-08-29 16:58:01 +02:00
parent 2465e689fb
commit c27e53a7b2
16 changed files with 235 additions and 130 deletions

View File

@@ -6,7 +6,7 @@ use {
use egui::{
math::clamp,
paint::{Color, PaintJobs, Texture, Triangles},
paint::{PaintJobs, Srgba, Texture, Triangles},
vec2,
};
@@ -179,7 +179,7 @@ impl Painter {
pub fn paint_jobs(
&mut self,
bg_color: Color,
bg_color: Srgba,
jobs: PaintJobs,
texture: &Texture,
pixels_per_point: f32,