Skip to content

Commit

Permalink
refactor: use BLACK.with_alpha instead of 0.0, 0.0, 0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
SeaDve committed Feb 13, 2024
1 parent 0efc83f commit 27684be
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/area_selector/view_port.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,12 @@ use std::{

const SIZE: f64 = 100.0;
const DEFAULT_SELECTION_SIZE: f32 = 40.0;
const SHADE_COLOR: gdk::RGBA = gdk::RGBA::new(0.0, 0.0, 0.0, 0.5);
const SHADE_COLOR: gdk::RGBA = gdk::RGBA::BLACK.with_alpha(0.5);

const SELECTION_LINE_WIDTH: f32 = 2.0;
const SELECTION_LINE_COLOR: gdk::RGBA = gdk::RGBA::WHITE.with_alpha(0.6);
const SELECTION_HANDLE_COLOR: gdk::RGBA = gdk::RGBA::WHITE;
const SELECTION_HANDLE_SHADOW_COLOR: gdk::RGBA = gdk::RGBA::new(0.0, 0.0, 0.0, 0.2);
const SELECTION_HANDLE_SHADOW_COLOR: gdk::RGBA = gdk::RGBA::BLACK.with_alpha(0.2);
const SELECTION_HANDLE_RADIUS: f32 = 12.0;

#[derive(Debug, Default, Clone, Copy, PartialEq, Eq)]
Expand Down

0 comments on commit 27684be

Please sign in to comment.