mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 16:47:44 +00:00
LibVT+Kernel: Create Color
class
Previously, we converted colors to their RGB values immediately when they were set. This meant that their semantic meaning was lost, we could not tell a precise RGB value apart from a named/indexed color. The new way of storing colors will allow us to retain this information, so we can change a color scheme on the fly, and previously emitted text will also be affected.
This commit is contained in:
parent
054c742d17
commit
99033876ec
7 changed files with 232 additions and 80 deletions
|
@ -14,6 +14,7 @@
|
|||
#include <LibGUI/Frame.h>
|
||||
#include <LibGfx/Bitmap.h>
|
||||
#include <LibGfx/Rect.h>
|
||||
#include <LibVT/Color.h>
|
||||
#include <LibVT/Range.h>
|
||||
#include <LibVT/Terminal.h>
|
||||
|
||||
|
@ -86,6 +87,8 @@ public:
|
|||
|
||||
GUI::Menu& context_menu() { return *m_context_menu; }
|
||||
|
||||
Gfx::Color terminal_color_to_rgb(VT::Color);
|
||||
|
||||
void set_font_and_resize_to_fit(const Gfx::Font&);
|
||||
|
||||
private:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue