Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

Is it possible to get the current color of the current screen on an Ubuntu 10.04 desktop?

I am thinking of using the current color so that I can use it in my Tk code. Something along the lines...
use Tk; my $mw = MainWindow->new(); $mw->configure( -background => "$current_color" );

Replies are listed 'Best First'.
Re: Getting the Color of the Current Screen
by stefbv (Priest) on Jan 12, 2011 at 10:08 UTC

    It may be possible by reading the system (Gnome, KDE ...) configuration values, but by applying a theme, the Tk main window should have the same background color as the other windows, by default.

    Regards, Stefan