Skip to content
Snippets Groups Projects
Unverified Commit 1809aa08 authored by Oliver Smith's avatar Oliver Smith
Browse files

Make colors more subtle (MR 87)

Let's not notice everybody standing around us with an eye-catching
screen that we are about to type in the full disk encryption password ;)

* Change the background from blue to black
* Change input box background from white to dark gray
* Change the "incorrect passphrase" background from red to dark gray
* Change the dot color from black to very light gray / almost white
parent 9395f246
No related branches found
No related tags found
No related merge requests found
# Config file for osk-sdl
# The space around the = is important
wallpaper = #0099FF
wallpaper = #000000
keyboard-background = #333333;
keyboard-map = us
......
......@@ -195,7 +195,7 @@ int main(int argc, char **args) {
inputBoxRadius = 0;
}
argb inputBoxColor = argb{255, 255, 255, 255};
argb inputBoxColor = argb{255, 30, 30, 30};
SDL_Surface* inputBox = make_input_box(WIDTH * 0.9, inputHeight,
&inputBoxColor, inputBoxRadius);
......
......@@ -50,8 +50,7 @@ int Tooltip::init(SDL_Renderer *renderer, string text){
fprintf(stderr, "CreateRGBSurface failed: %s\n", SDL_GetError());
return -1;
}
SDL_FillRect(surface, NULL, SDL_MapRGB(surface->format, 239, 59, 59));
SDL_FillRect(surface, NULL, SDL_MapRGB(surface->format, 30, 30, 30));
TTF_Font *font = TTF_OpenFont(config->keyboardFont.c_str(), 24);
SDL_Surface *textSurface;
......
......@@ -111,7 +111,7 @@ SDL_Surface* make_wallpaper(SDL_Renderer *renderer, Config *config, int width, i
void draw_circle(SDL_Renderer *renderer, SDL_Point center, int radius) {
SDL_SetRenderDrawColor(renderer, 0, 0, 0, 255);
SDL_SetRenderDrawColor(renderer, 229, 229, 229, 255);
for (int w = 0; w < radius * 2; w++) {
for (int h = 0; h < radius * 2; h++) {
int dx = radius - w; // horizontal offset
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment