Decrease height of title bar of apps without switching theme on Ubuntu 18.04
up vote
3
down vote
favorite
How do I decrease height of the title bar of apps without switching theme?
18.04 gtk titlebar
add a comment |Â
up vote
3
down vote
favorite
How do I decrease height of the title bar of apps without switching theme?
18.04 gtk titlebar
add a comment |Â
up vote
3
down vote
favorite
up vote
3
down vote
favorite
How do I decrease height of the title bar of apps without switching theme?
18.04 gtk titlebar
How do I decrease height of the title bar of apps without switching theme?
18.04 gtk titlebar
edited May 10 at 10:14
pomsky
21.9k76694
21.9k76694
asked May 10 at 9:07
vv0iadyk
436
436
add a comment |Â
add a comment |Â
2 Answers
2
active
oldest
votes
up vote
0
down vote
Assuming you are using Gnome 3 -
- Open or Create the file :
~/.config/gtk-3.0/gtk.css
(~
is the home location for your current user. For example, if your user isdemo
, then~
would representhomedemo
) Add the following CSS to the file
headerbar entry,
headerbar spinbutton,
headerbar button,
headerbar separator
margin-top: 0px; /* same as headerbar side padding for nicer proportions */
margin-bottom: 0px;
headerbar
min-height: 24px;
padding-left: 2px; /* same as childrens vertical margins for nicer proportions */
padding-right: 2px;
margin: 0px; /* same as headerbar side padding for nicer proportions */
padding: 0px;
Run
ALT+F2
and provide the letter 'r
' in the dialog box that appears that and hit enter to refresh the style
For more info, refer the original solution from Unix Stackexchange : https://unix.stackexchange.com/questions/276951/how-to-change-the-titlebar-height-in-standard-gtk-apps-and-those-with-headerbars?utm_medium=organic&utm_source=google_rich_qa&utm_campaign=google_rich_qa
add a comment |Â
up vote
0
down vote
The above did not work for me... but I got good results
with the following in my file ~/.config/gtk-3.0/gtk.css :
/*
* Reduce height of window header (title?) bars.
* Seems enough to specify padding, no need to repeat
* padding-left padding-right padding-top padding-bottom
* nor it seems necessary to even mention
* margin-top margin-bottom
*/
.default-decoration
min-height: 0px;
padding: 3px;
.default-decoration .titlebutton
min-height: 0px;
padding: 0px;
add a comment |Â
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
Assuming you are using Gnome 3 -
- Open or Create the file :
~/.config/gtk-3.0/gtk.css
(~
is the home location for your current user. For example, if your user isdemo
, then~
would representhomedemo
) Add the following CSS to the file
headerbar entry,
headerbar spinbutton,
headerbar button,
headerbar separator
margin-top: 0px; /* same as headerbar side padding for nicer proportions */
margin-bottom: 0px;
headerbar
min-height: 24px;
padding-left: 2px; /* same as childrens vertical margins for nicer proportions */
padding-right: 2px;
margin: 0px; /* same as headerbar side padding for nicer proportions */
padding: 0px;
Run
ALT+F2
and provide the letter 'r
' in the dialog box that appears that and hit enter to refresh the style
For more info, refer the original solution from Unix Stackexchange : https://unix.stackexchange.com/questions/276951/how-to-change-the-titlebar-height-in-standard-gtk-apps-and-those-with-headerbars?utm_medium=organic&utm_source=google_rich_qa&utm_campaign=google_rich_qa
add a comment |Â
up vote
0
down vote
Assuming you are using Gnome 3 -
- Open or Create the file :
~/.config/gtk-3.0/gtk.css
(~
is the home location for your current user. For example, if your user isdemo
, then~
would representhomedemo
) Add the following CSS to the file
headerbar entry,
headerbar spinbutton,
headerbar button,
headerbar separator
margin-top: 0px; /* same as headerbar side padding for nicer proportions */
margin-bottom: 0px;
headerbar
min-height: 24px;
padding-left: 2px; /* same as childrens vertical margins for nicer proportions */
padding-right: 2px;
margin: 0px; /* same as headerbar side padding for nicer proportions */
padding: 0px;
Run
ALT+F2
and provide the letter 'r
' in the dialog box that appears that and hit enter to refresh the style
For more info, refer the original solution from Unix Stackexchange : https://unix.stackexchange.com/questions/276951/how-to-change-the-titlebar-height-in-standard-gtk-apps-and-those-with-headerbars?utm_medium=organic&utm_source=google_rich_qa&utm_campaign=google_rich_qa
add a comment |Â
up vote
0
down vote
up vote
0
down vote
Assuming you are using Gnome 3 -
- Open or Create the file :
~/.config/gtk-3.0/gtk.css
(~
is the home location for your current user. For example, if your user isdemo
, then~
would representhomedemo
) Add the following CSS to the file
headerbar entry,
headerbar spinbutton,
headerbar button,
headerbar separator
margin-top: 0px; /* same as headerbar side padding for nicer proportions */
margin-bottom: 0px;
headerbar
min-height: 24px;
padding-left: 2px; /* same as childrens vertical margins for nicer proportions */
padding-right: 2px;
margin: 0px; /* same as headerbar side padding for nicer proportions */
padding: 0px;
Run
ALT+F2
and provide the letter 'r
' in the dialog box that appears that and hit enter to refresh the style
For more info, refer the original solution from Unix Stackexchange : https://unix.stackexchange.com/questions/276951/how-to-change-the-titlebar-height-in-standard-gtk-apps-and-those-with-headerbars?utm_medium=organic&utm_source=google_rich_qa&utm_campaign=google_rich_qa
Assuming you are using Gnome 3 -
- Open or Create the file :
~/.config/gtk-3.0/gtk.css
(~
is the home location for your current user. For example, if your user isdemo
, then~
would representhomedemo
) Add the following CSS to the file
headerbar entry,
headerbar spinbutton,
headerbar button,
headerbar separator
margin-top: 0px; /* same as headerbar side padding for nicer proportions */
margin-bottom: 0px;
headerbar
min-height: 24px;
padding-left: 2px; /* same as childrens vertical margins for nicer proportions */
padding-right: 2px;
margin: 0px; /* same as headerbar side padding for nicer proportions */
padding: 0px;
Run
ALT+F2
and provide the letter 'r
' in the dialog box that appears that and hit enter to refresh the style
For more info, refer the original solution from Unix Stackexchange : https://unix.stackexchange.com/questions/276951/how-to-change-the-titlebar-height-in-standard-gtk-apps-and-those-with-headerbars?utm_medium=organic&utm_source=google_rich_qa&utm_campaign=google_rich_qa
answered May 10 at 11:21
R.S
395
395
add a comment |Â
add a comment |Â
up vote
0
down vote
The above did not work for me... but I got good results
with the following in my file ~/.config/gtk-3.0/gtk.css :
/*
* Reduce height of window header (title?) bars.
* Seems enough to specify padding, no need to repeat
* padding-left padding-right padding-top padding-bottom
* nor it seems necessary to even mention
* margin-top margin-bottom
*/
.default-decoration
min-height: 0px;
padding: 3px;
.default-decoration .titlebutton
min-height: 0px;
padding: 0px;
add a comment |Â
up vote
0
down vote
The above did not work for me... but I got good results
with the following in my file ~/.config/gtk-3.0/gtk.css :
/*
* Reduce height of window header (title?) bars.
* Seems enough to specify padding, no need to repeat
* padding-left padding-right padding-top padding-bottom
* nor it seems necessary to even mention
* margin-top margin-bottom
*/
.default-decoration
min-height: 0px;
padding: 3px;
.default-decoration .titlebutton
min-height: 0px;
padding: 0px;
add a comment |Â
up vote
0
down vote
up vote
0
down vote
The above did not work for me... but I got good results
with the following in my file ~/.config/gtk-3.0/gtk.css :
/*
* Reduce height of window header (title?) bars.
* Seems enough to specify padding, no need to repeat
* padding-left padding-right padding-top padding-bottom
* nor it seems necessary to even mention
* margin-top margin-bottom
*/
.default-decoration
min-height: 0px;
padding: 3px;
.default-decoration .titlebutton
min-height: 0px;
padding: 0px;
The above did not work for me... but I got good results
with the following in my file ~/.config/gtk-3.0/gtk.css :
/*
* Reduce height of window header (title?) bars.
* Seems enough to specify padding, no need to repeat
* padding-left padding-right padding-top padding-bottom
* nor it seems necessary to even mention
* margin-top margin-bottom
*/
.default-decoration
min-height: 0px;
padding: 3px;
.default-decoration .titlebutton
min-height: 0px;
padding: 0px;
answered Aug 13 at 8:26
Paul Szabo
1
1
add a comment |Â
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1034404%2fdecrease-height-of-title-bar-of-apps-without-switching-theme-on-ubuntu-18-04%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password