2023-04-22 21:16:17 +03:00
|
|
|
// Copyright 2023 The Grim Developers
|
|
|
|
//
|
|
|
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
// you may not use this file except in compliance with the License.
|
|
|
|
// You may obtain a copy of the License at
|
|
|
|
//
|
|
|
|
// http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
//
|
|
|
|
// Unless required by applicable law or agreed to in writing, software
|
|
|
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
// See the License for the specific language governing permissions and
|
|
|
|
// limitations under the License.
|
|
|
|
|
2023-06-03 11:22:51 +03:00
|
|
|
use egui::Color32;
|
|
|
|
|
|
|
|
pub struct Colors;
|
|
|
|
|
|
|
|
impl Colors {
|
|
|
|
pub const WHITE: Color32 = Color32::from_gray(253);
|
2023-07-30 21:08:16 +03:00
|
|
|
pub const BLACK: Color32 = Color32::from_gray(12);
|
2023-06-03 11:22:51 +03:00
|
|
|
pub const TRANSPARENT: Color32 = Color32::from_rgba_premultiplied(0, 0, 0, 0);
|
|
|
|
pub const SEMI_TRANSPARENT: Color32 = Color32::from_black_alpha(100);
|
|
|
|
pub const YELLOW: Color32 = Color32::from_rgb(254, 241, 2);
|
|
|
|
pub const GOLD: Color32 = Color32::from_rgb(255, 215, 0);
|
2023-06-20 00:38:25 +03:00
|
|
|
pub const GREEN: Color32 = Color32::from_rgb(0, 0x64, 0);
|
|
|
|
pub const RED: Color32 = Color32::from_rgb(0x8B, 0, 0);
|
2023-06-23 22:12:30 +03:00
|
|
|
pub const FILL: Color32 = Color32::from_gray(244);
|
2023-07-31 01:04:41 +03:00
|
|
|
pub const FILL_DARK: Color32 = Color32::from_gray(234);
|
2023-08-03 04:11:25 +03:00
|
|
|
pub const CHECKBOX: Color32 = Color32::from_gray(100);
|
2023-06-03 21:35:38 +03:00
|
|
|
pub const TEXT: Color32 = Color32::from_gray(80);
|
2023-06-23 22:12:30 +03:00
|
|
|
pub const TEXT_BUTTON: Color32 = Color32::from_gray(70);
|
2023-07-05 16:06:14 +03:00
|
|
|
pub const TITLE: Color32 = Color32::from_gray(60);
|
2023-06-23 22:12:30 +03:00
|
|
|
pub const BUTTON: Color32 = Color32::from_gray(249);
|
2023-06-03 11:22:51 +03:00
|
|
|
pub const GRAY: Color32 = Color32::from_gray(120);
|
2023-08-16 04:40:19 +03:00
|
|
|
pub const STROKE: Color32 = Color32::from_gray(200);
|
2023-06-03 11:22:51 +03:00
|
|
|
pub const INACTIVE_TEXT: Color32 = Color32::from_gray(150);
|
2023-07-31 01:04:41 +03:00
|
|
|
pub const ITEM_BUTTON: Color32 = Color32::from_gray(90);
|
2023-06-03 11:22:51 +03:00
|
|
|
pub const ITEM_STROKE: Color32 = Color32::from_gray(220);
|
2023-07-30 18:57:12 +03:00
|
|
|
pub const ITEM_HOVER: Color32 = Color32::from_gray(205);
|
|
|
|
pub const ITEM_CURRENT: Color32 = Color32::from_gray(227);
|
2023-06-03 11:22:51 +03:00
|
|
|
}
|