mirror of
https://github.com/duncs/clusterssh.git
synced 2025-04-21 09:09:06 +00:00
Bigger menu for 4k (or bigger) displays
Detects screen size based on $xdisplay data. If 4k or bigger uses Nimbus 14 for the menu. Fixes #136.
This commit is contained in:
parent
e11cc83620
commit
00d8aa0ebd
1 changed files with 6 additions and 0 deletions
|
@ -1276,10 +1276,16 @@ sub setup_repeat() {
|
|||
|
||||
sub create_windows() {
|
||||
my ($self) = @_;
|
||||
my ($screen_height) = $xdisplay->{height_in_pixels};
|
||||
my ($screen_width) = $xdisplay->{width_in_pixels};
|
||||
$self->debug( 2, "create_windows: started" );
|
||||
|
||||
$windows{main_window}
|
||||
= MainWindow->new( -title => "ClusterSSH", -class => 'cssh', );
|
||||
if ($screen_height * $screen_width >= 8294400) # display 4k or bigger
|
||||
{
|
||||
$windows{main_window}->optionAdd('*font', 'Nimbus 14'); # better for 4k displays
|
||||
}
|
||||
$windows{main_window}->withdraw; # leave withdrawn until needed
|
||||
|
||||
if ( defined( $self->config->{console_position} )
|
||||
|
|
Loading…
Add table
Reference in a new issue