Mageia Bugzilla – Attachment 9270 Details for
Bug 20624
Hidden buttons in the Installer gui - UI elements and fonts are too big for screen resolution
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
New Account
|
Forgot Password
[patch]
increase the window size
increase_resolution.diff (text/plain), 2.69 KB, created by
Frédéric "LpSolit" Buclin
on 2017-05-06 20:11:12 CEST
(
hide
)
Description:
increase the window size
Filename:
MIME Type:
Creator:
Frédéric "LpSolit" Buclin
Created:
2017-05-06 20:11:12 CEST
Size:
2.69 KB
patch
obsolete
>From 55cf208b4bc23b26fd9143ecf605a4bdbf61bf65 Mon Sep 17 00:00:00 2001 >From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Buclin?= <LpSolit@netscape.net> >Date: Sat, 6 May 2017 20:02:52 +0200 >Subject: [PATCH] Increase the window size of the installer (mga#20624) > >This permits to correctly display the different panels as some >of them contain quite a lot of data. >--- > perl-install/install/gtk.pm | 3 ++- > perl-install/install/steps_gtk.pm | 2 +- > tools/drakx-in-chroot | 4 ++-- > 3 files changed, 5 insertions(+), 4 deletions(-) > >diff --git a/perl-install/install/gtk.pm b/perl-install/install/gtk.pm >index ce820a9..3b8a1fd 100644 >--- a/perl-install/install/gtk.pm >+++ b/perl-install/install/gtk.pm >@@ -220,7 +220,8 @@ sub init_sizes { > ($::rootwidth, $::rootheight) = (Gtk3::Gdk::Screen::width, Gtk3::Gdk::Screen::height); > $::stepswidth = $::rootwidth <= 640 ? 0 : 196; > ($o->{windowwidth}, $o->{windowheight}) = ($::rootwidth - $::stepswidth, $::rootheight); >- ($::real_windowwidth, $::real_windowheight) = (576, 465); >+ # Adapt the window size to available screen width and height. >+ ($::real_windowwidth, $::real_windowheight) = ($::rootwidth - 224, $::rootheight - 135); > } > > sub handle_unsafe_mouse { >diff --git a/perl-install/install/steps_gtk.pm b/perl-install/install/steps_gtk.pm >index 61f367f..ffa323c 100644 >--- a/perl-install/install/steps_gtk.pm >+++ b/perl-install/install/steps_gtk.pm >@@ -114,7 +114,7 @@ sub _launchX { > > my @options = $wanted_DISPLAY; > if ($server eq 'Xnest') { >- push @options, '-ac', '-geometry', $o->{vga} || ($o->{vga16} ? '640x480' : '800x600'); >+ push @options, '-ac', '-geometry', $o->{vga} || ($o->{vga16} ? '640x480' : '1024x768'); > } else { > install::gtk::createXconf($f, $Driver); > >diff --git a/tools/drakx-in-chroot b/tools/drakx-in-chroot >index 5bcd9d5..6565ec9 100755 >--- a/tools/drakx-in-chroot >+++ b/tools/drakx-in-chroot >@@ -16,14 +16,14 @@ my $COMPRESSED_FILE_REL = $COMPRESSED_LOCATION_REL . 'mdkinst.sqfs'; > my $AUTO_INSTALL_ROOTED = '/tmp/auto_inst.cfg.pl'; > my $DEFCFG_ROOTED = '/tmp/defcfg.pl'; > my $RPMSRATE_ROOTED = '/tmp/rpmsrate'; >-my $resolution = '800x600'; >+my $resolution = '1024x768'; > my ($disk_iso_repository, $repository_uri); > > @ARGV >= 2 or die "usage: drakx-in-chroot <root of distrib> <dir to install to> [options]\n > \nOptions specific to drakx-in-chroot: > --flang XX use XX locale > --disk-iso path of a distro >- --resolution=XXXxYYYY (eg: --resolution=1024x768)\n >+ --resolution=XXXxYYYY (eg: --resolution=800x600)\n > --repository=<path> path of packages repository > --text text mode installer > --depth=XX set screen color depth >-- >2.10.2 >
From 55cf208b4bc23b26fd9143ecf605a4bdbf61bf65 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Buclin?= <LpSolit@netscape.net> Date: Sat, 6 May 2017 20:02:52 +0200 Subject: [PATCH] Increase the window size of the installer (mga#20624) This permits to correctly display the different panels as some of them contain quite a lot of data. --- perl-install/install/gtk.pm | 3 ++- perl-install/install/steps_gtk.pm | 2 +- tools/drakx-in-chroot | 4 ++-- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/perl-install/install/gtk.pm b/perl-install/install/gtk.pm index ce820a9..3b8a1fd 100644 --- a/perl-install/install/gtk.pm +++ b/perl-install/install/gtk.pm @@ -220,7 +220,8 @@ sub init_sizes { ($::rootwidth, $::rootheight) = (Gtk3::Gdk::Screen::width, Gtk3::Gdk::Screen::height); $::stepswidth = $::rootwidth <= 640 ? 0 : 196; ($o->{windowwidth}, $o->{windowheight}) = ($::rootwidth - $::stepswidth, $::rootheight); - ($::real_windowwidth, $::real_windowheight) = (576, 465); + # Adapt the window size to available screen width and height. + ($::real_windowwidth, $::real_windowheight) = ($::rootwidth - 224, $::rootheight - 135); } sub handle_unsafe_mouse { diff --git a/perl-install/install/steps_gtk.pm b/perl-install/install/steps_gtk.pm index 61f367f..ffa323c 100644 --- a/perl-install/install/steps_gtk.pm +++ b/perl-install/install/steps_gtk.pm @@ -114,7 +114,7 @@ sub _launchX { my @options = $wanted_DISPLAY; if ($server eq 'Xnest') { - push @options, '-ac', '-geometry', $o->{vga} || ($o->{vga16} ? '640x480' : '800x600'); + push @options, '-ac', '-geometry', $o->{vga} || ($o->{vga16} ? '640x480' : '1024x768'); } else { install::gtk::createXconf($f, $Driver); diff --git a/tools/drakx-in-chroot b/tools/drakx-in-chroot index 5bcd9d5..6565ec9 100755 --- a/tools/drakx-in-chroot +++ b/tools/drakx-in-chroot @@ -16,14 +16,14 @@ my $COMPRESSED_FILE_REL = $COMPRESSED_LOCATION_REL . 'mdkinst.sqfs'; my $AUTO_INSTALL_ROOTED = '/tmp/auto_inst.cfg.pl'; my $DEFCFG_ROOTED = '/tmp/defcfg.pl'; my $RPMSRATE_ROOTED = '/tmp/rpmsrate'; -my $resolution = '800x600'; +my $resolution = '1024x768'; my ($disk_iso_repository, $repository_uri); @ARGV >= 2 or die "usage: drakx-in-chroot <root of distrib> <dir to install to> [options]\n \nOptions specific to drakx-in-chroot: --flang XX use XX locale --disk-iso path of a distro - --resolution=XXXxYYYY (eg: --resolution=1024x768)\n + --resolution=XXXxYYYY (eg: --resolution=800x600)\n --repository=<path> path of packages repository --text text mode installer --depth=XX set screen color depth -- 2.10.2
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 20624
:
9183
|
9194
|
9195
|
9270
|
9271
|
9272
|
9438