Verified Commit 2ebe5920 authored by Jeremy Soller's avatar Jeremy Soller
Browse files

Sync theme with orbutils

parent ed3216dd
Pipeline #10167 passed with stage
in 1 minute and 14 seconds
use orbclient::Color;
pub const BACKGROUND_COLOR: Color = Color::rgb(0, 0, 0);
pub const BAR_COLOR: Color = Color::rgb(47, 52, 63);
pub const BAR_HIGHLIGHT_COLOR: Color = Color::rgb(0x44, 0x4a, 0x58);
pub const TEXT_COLOR: Color = Color::rgb(0xD3, 0xDA, 0xE3);
pub const BAR_COLOR: Color = Color::rgba(47, 52, 63, 224);
pub const BAR_HIGHLIGHT_COLOR: Color = Color::rgba(80, 86, 102, 224);
pub const TEXT_COLOR: Color = Color::rgb(204, 210, 224);
pub const TEXT_HIGHLIGHT_COLOR: Color = Color::rgb(235, 241, 255);
......@@ -230,10 +230,14 @@ impl Window {
pub fn render_title(&mut self, font: &Font) {
let title_render = font.render(&self.title, (16 * self.scale) as f32);
self.title_image = Image::from_color(title_render.width() as i32, title_render.height() as i32, BAR_HIGHLIGHT_COLOR);
let color_blank = Color::rgba(0, 0, 0, 0);
self.title_image = Image::from_color(title_render.width() as i32, title_render.height() as i32, color_blank);
self.title_image.mode().set(orbclient::Mode::Overwrite);
title_render.draw(&mut self.title_image, 0, 0, TEXT_HIGHLIGHT_COLOR);
self.title_image_unfocused = Image::from_color(title_render.width() as i32, title_render.height() as i32, BAR_COLOR);
self.title_image_unfocused = Image::from_color(title_render.width() as i32, title_render.height() as i32, color_blank);
self.title_image_unfocused.mode().set(orbclient::Mode::Overwrite);
title_render.draw(&mut self.title_image_unfocused, 0, 0, TEXT_COLOR);
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment