From e7caed2208893723181892d5e197b924311373fb Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sun, 29 Apr 2018 09:31:06 +0200 Subject: Improve scaling, start implementing color scheme --- src/main.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/main.cpp') diff --git a/src/main.cpp b/src/main.cpp index 580b362..dff2328 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -7,6 +7,7 @@ #include "../include/Video.hpp" #include "../include/Command.hpp" #include "../include/Settings.hpp" +#include "../include/ColorScheme.hpp" #include #include #include @@ -280,11 +281,11 @@ int main(int argc, char **argv) #endif }); - Command::add("scaling", [](const vector &args) + Command::add("scale", [](const vector &args) { if(args.size() != 1) { - fprintf(stderr, "Expected 1 argument for command scaling, got %u argument(s)\n", args.size()); + fprintf(stderr, "Expected 1 argument for command scale, got %u argument(s)\n", args.size()); return; } @@ -316,7 +317,7 @@ int main(int argc, char **argv) Channel::getCurrent()->processEvent(event); } - window.clear(sf::Color(40, 40, 40)); + window.clear(ColorScheme::getBackgroundColor()); ChannelSidePanel::draw(window); Channel::getCurrent()->draw(window, cache); UsersSidePanel::draw(window); -- cgit v1.2.3