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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user