wxMaxima
Loading...
Searching...
No Matches
Data Structures | Macros | Functions
test_TooltipMarkerColour.cpp File Reference

The tint behind cells that have a mouse-over tooltip must leave their text readable on a light as well as on a dark background. More...

#include <wx/app.h>
#include <wx/bitmap.h>
#include <wx/dcmemory.h>
#include <wx/fileconf.h>
#include <wx/log.h>
#include <algorithm>
#include <cmath>
#include "Configuration.h"
#include <catch2/catch.hpp>
Include dependency graph for test_TooltipMarkerColour.cpp:

Data Structures

class  TestApp
 

Functions

 SCENARIO ("The tooltip tint keeps text readable")
 
 SCENARIO ("The tooltip brush follows the background")
 
 wxDECLARE_APP (TestApp)
 
int main (int argc, char **argv)
 

Detailed Description

The tint behind cells that have a mouse-over tooltip must leave their text readable on a light as well as on a dark background.

It used to be a fixed, half-transparent pale yellow. On the dark style set's background that blended to a light grey-yellow, which the light text drawn on top of it hardly stood out from (and where the DC ignores alpha, as MSW's plain wxDC does, it was solid pale yellow under light text).