Decrease height of title bar of apps without switching theme on Ubuntu 18.04

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP








up vote
3
down vote

favorite












example



How do I decrease height of the title bar of apps without switching theme?







share|improve this question


























    up vote
    3
    down vote

    favorite












    example



    How do I decrease height of the title bar of apps without switching theme?







    share|improve this question
























      up vote
      3
      down vote

      favorite









      up vote
      3
      down vote

      favorite











      example



      How do I decrease height of the title bar of apps without switching theme?







      share|improve this question














      example



      How do I decrease height of the title bar of apps without switching theme?









      share|improve this question













      share|improve this question




      share|improve this question








      edited May 10 at 10:14









      pomsky

      21.9k76694




      21.9k76694










      asked May 10 at 9:07









      vv0iadyk

      436




      436




















          2 Answers
          2






          active

          oldest

          votes

















          up vote
          0
          down vote













          Assuming you are using Gnome 3 -



          1. Open or Create the file : ~/.config/gtk-3.0/gtk.css (~ is the home location for your current user. For example, if your user is demo, then ~ would represent homedemo)


          2. 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;



          3. 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






          share|improve this answer



























            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;






            share|improve this answer




















              Your Answer







              StackExchange.ready(function()
              var channelOptions =
              tags: "".split(" "),
              id: "89"
              ;
              initTagRenderer("".split(" "), "".split(" "), channelOptions);

              StackExchange.using("externalEditor", function()
              // Have to fire editor after snippets, if snippets enabled
              if (StackExchange.settings.snippets.snippetsEnabled)
              StackExchange.using("snippets", function()
              createEditor();
              );

              else
              createEditor();

              );

              function createEditor()
              StackExchange.prepareEditor(
              heartbeatType: 'answer',
              convertImagesToLinks: true,
              noModals: false,
              showLowRepImageUploadWarning: true,
              reputationToPostImages: 10,
              bindNavPrevention: true,
              postfix: "",
              onDemand: true,
              discardSelector: ".discard-answer"
              ,immediatelyShowMarkdownHelp:true
              );



              );








               

              draft saved


              draft discarded


















              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






























              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 -



              1. Open or Create the file : ~/.config/gtk-3.0/gtk.css (~ is the home location for your current user. For example, if your user is demo, then ~ would represent homedemo)


              2. 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;



              3. 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






              share|improve this answer
























                up vote
                0
                down vote













                Assuming you are using Gnome 3 -



                1. Open or Create the file : ~/.config/gtk-3.0/gtk.css (~ is the home location for your current user. For example, if your user is demo, then ~ would represent homedemo)


                2. 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;



                3. 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






                share|improve this answer






















                  up vote
                  0
                  down vote










                  up vote
                  0
                  down vote









                  Assuming you are using Gnome 3 -



                  1. Open or Create the file : ~/.config/gtk-3.0/gtk.css (~ is the home location for your current user. For example, if your user is demo, then ~ would represent homedemo)


                  2. 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;



                  3. 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






                  share|improve this answer












                  Assuming you are using Gnome 3 -



                  1. Open or Create the file : ~/.config/gtk-3.0/gtk.css (~ is the home location for your current user. For example, if your user is demo, then ~ would represent homedemo)


                  2. 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;



                  3. 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







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered May 10 at 11:21









                  R.S

                  395




                  395






















                      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;






                      share|improve this answer
























                        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;






                        share|improve this answer






















                          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;






                          share|improve this answer












                          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;







                          share|improve this answer












                          share|improve this answer



                          share|improve this answer










                          answered Aug 13 at 8:26









                          Paul Szabo

                          1




                          1






















                               

                              draft saved


                              draft discarded


























                               


                              draft saved


                              draft discarded














                              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













































































                              Popular posts from this blog

                              Which professions warranted travel in Medieval times?

                              How do so many people here on Academia.SE, and in general, afford lavish higher education programs?

                              Trouble downloading packages list due to a “Hash sum mismatch” error