Changing Selection color in ubuntu[18.10] themes











up vote
2
down vote

favorite












I use Ant Dracula theme for my ubuntu. But selection color is pink color, which I want to change to different color. How can I change?
Theme Link is https://www.gnome-look.org/p/1099856/
Pink color on home



and on firefox. enter image description here










share|improve this question




























    up vote
    2
    down vote

    favorite












    I use Ant Dracula theme for my ubuntu. But selection color is pink color, which I want to change to different color. How can I change?
    Theme Link is https://www.gnome-look.org/p/1099856/
    Pink color on home



    and on firefox. enter image description here










    share|improve this question


























      up vote
      2
      down vote

      favorite









      up vote
      2
      down vote

      favorite











      I use Ant Dracula theme for my ubuntu. But selection color is pink color, which I want to change to different color. How can I change?
      Theme Link is https://www.gnome-look.org/p/1099856/
      Pink color on home



      and on firefox. enter image description here










      share|improve this question















      I use Ant Dracula theme for my ubuntu. But selection color is pink color, which I want to change to different color. How can I change?
      Theme Link is https://www.gnome-look.org/p/1099856/
      Pink color on home



      and on firefox. enter image description here







      gnome themes customization






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Nov 25 at 13:24

























      asked Nov 25 at 13:14









      user23

      354




      354






















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          1
          down vote



          accepted










          we need to edit the file gtk.css



          access the file by



          sudo -H nautilus /usr/share/themes/Ant-Dracula/gtk-3.20/gtk.css/ change /usr/share/themes if you stored your file in ~/.themes



          find the color #ff79c6 and change it to your preferred color in the initial lines.
          it has major effect on themes.



          /* GTK NAMED COLORS
          ----------------
          use responsibly! */
          /* widget text/foreground color */
          @define-color theme_fg_color #f8f8f2;
          /* text color for entries, views and content in general */
          @define-color theme_text_color #f8f8f2;
          /* widget base background color */
          @define-color theme_bg_color #1e1f29;
          /* text widgets and the like base background color */
          @define-color theme_base_color #282a36;
          /* base background color of selections */
          @define-color theme_selected_bg_color #ff79c6;
          /* text/foreground color of selections */
          @define-color theme_selected_fg_color #f8f8f2;
          /* base background color of disabled widgets */
          @define-color insensitive_bg_color #22232e;
          /* text foreground color of disabled widgets */
          @define-color insensitive_fg_color #8b8c8e;
          /* disabled text widgets and the like base background color */
          @define-color insensitive_base_color #282a36;
          /* widget text/foreground color on backdrop windows */
          @define-color theme_unfocused_fg_color #8b8c8e;
          /* text color for entries, views and content in general on backdrop windows */
          @define-color theme_unfocused_text_color #f8f8f2;
          /* widget base background color on backdrop windows */
          @define-color theme_unfocused_bg_color #1e1f29;
          /* text widgets and the like base background color on backdrop windows */
          @define-color theme_unfocused_base_color #2a2c39;
          /* base background color of selections on backdrop windows */
          @define-color theme_unfocused_selected_bg_color #ff79c6;
          /* text/foreground color of selections on backdrop windows */
          @define-color theme_unfocused_selected_fg_color #f8f8f2;
          /* widgets main borders color */
          @define-color borders rgba(25, 26, 34, 0.9);
          /* widgets main borders color on backdrop windows */
          @define-color unfocused_borders rgba(26, 27, 35, 0.91);
          /* these are pretty self explicative */
          @define-color warning_color #ff9f39;
          @define-color error_color #ff3c3c;
          @define-color success_color #4caec3;


          there are 67 entries with the color #ff79c6, i have replaced all of them with #456789 in single shot. if you want to try each individual, you have to make trial and error of those 67 entries.



          save the file & Close. Reboot to see the change.



          enter image description here






          share|improve this answer























          • I had thought of similar solution. But I was not able to find the exact color. How did you find it was this #ff79c6 color.
            – user23
            Nov 25 at 13:45










          • its generally bg_color some thing related to background.
            – PRATAP
            Nov 25 at 13:52










          • Please relook at "sudo -H nautilus /usr/share/themes/Ant-Dracula/gtk-3.20/gtk.css/". gtk.css is a file not a folder.
            – DK Bose
            Nov 25 at 14:23










          • @DKBose yes, when you run sudo -H nautilus /usr/share/themes/Ant-Dracula/gtk-3.20/gtk.css/ it will get selected and ready to open when you press enter.
            – PRATAP
            Nov 25 at 14:24













          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: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          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%2f1095904%2fchanging-selection-color-in-ubuntu18-10-themes%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          up vote
          1
          down vote



          accepted










          we need to edit the file gtk.css



          access the file by



          sudo -H nautilus /usr/share/themes/Ant-Dracula/gtk-3.20/gtk.css/ change /usr/share/themes if you stored your file in ~/.themes



          find the color #ff79c6 and change it to your preferred color in the initial lines.
          it has major effect on themes.



          /* GTK NAMED COLORS
          ----------------
          use responsibly! */
          /* widget text/foreground color */
          @define-color theme_fg_color #f8f8f2;
          /* text color for entries, views and content in general */
          @define-color theme_text_color #f8f8f2;
          /* widget base background color */
          @define-color theme_bg_color #1e1f29;
          /* text widgets and the like base background color */
          @define-color theme_base_color #282a36;
          /* base background color of selections */
          @define-color theme_selected_bg_color #ff79c6;
          /* text/foreground color of selections */
          @define-color theme_selected_fg_color #f8f8f2;
          /* base background color of disabled widgets */
          @define-color insensitive_bg_color #22232e;
          /* text foreground color of disabled widgets */
          @define-color insensitive_fg_color #8b8c8e;
          /* disabled text widgets and the like base background color */
          @define-color insensitive_base_color #282a36;
          /* widget text/foreground color on backdrop windows */
          @define-color theme_unfocused_fg_color #8b8c8e;
          /* text color for entries, views and content in general on backdrop windows */
          @define-color theme_unfocused_text_color #f8f8f2;
          /* widget base background color on backdrop windows */
          @define-color theme_unfocused_bg_color #1e1f29;
          /* text widgets and the like base background color on backdrop windows */
          @define-color theme_unfocused_base_color #2a2c39;
          /* base background color of selections on backdrop windows */
          @define-color theme_unfocused_selected_bg_color #ff79c6;
          /* text/foreground color of selections on backdrop windows */
          @define-color theme_unfocused_selected_fg_color #f8f8f2;
          /* widgets main borders color */
          @define-color borders rgba(25, 26, 34, 0.9);
          /* widgets main borders color on backdrop windows */
          @define-color unfocused_borders rgba(26, 27, 35, 0.91);
          /* these are pretty self explicative */
          @define-color warning_color #ff9f39;
          @define-color error_color #ff3c3c;
          @define-color success_color #4caec3;


          there are 67 entries with the color #ff79c6, i have replaced all of them with #456789 in single shot. if you want to try each individual, you have to make trial and error of those 67 entries.



          save the file & Close. Reboot to see the change.



          enter image description here






          share|improve this answer























          • I had thought of similar solution. But I was not able to find the exact color. How did you find it was this #ff79c6 color.
            – user23
            Nov 25 at 13:45










          • its generally bg_color some thing related to background.
            – PRATAP
            Nov 25 at 13:52










          • Please relook at "sudo -H nautilus /usr/share/themes/Ant-Dracula/gtk-3.20/gtk.css/". gtk.css is a file not a folder.
            – DK Bose
            Nov 25 at 14:23










          • @DKBose yes, when you run sudo -H nautilus /usr/share/themes/Ant-Dracula/gtk-3.20/gtk.css/ it will get selected and ready to open when you press enter.
            – PRATAP
            Nov 25 at 14:24

















          up vote
          1
          down vote



          accepted










          we need to edit the file gtk.css



          access the file by



          sudo -H nautilus /usr/share/themes/Ant-Dracula/gtk-3.20/gtk.css/ change /usr/share/themes if you stored your file in ~/.themes



          find the color #ff79c6 and change it to your preferred color in the initial lines.
          it has major effect on themes.



          /* GTK NAMED COLORS
          ----------------
          use responsibly! */
          /* widget text/foreground color */
          @define-color theme_fg_color #f8f8f2;
          /* text color for entries, views and content in general */
          @define-color theme_text_color #f8f8f2;
          /* widget base background color */
          @define-color theme_bg_color #1e1f29;
          /* text widgets and the like base background color */
          @define-color theme_base_color #282a36;
          /* base background color of selections */
          @define-color theme_selected_bg_color #ff79c6;
          /* text/foreground color of selections */
          @define-color theme_selected_fg_color #f8f8f2;
          /* base background color of disabled widgets */
          @define-color insensitive_bg_color #22232e;
          /* text foreground color of disabled widgets */
          @define-color insensitive_fg_color #8b8c8e;
          /* disabled text widgets and the like base background color */
          @define-color insensitive_base_color #282a36;
          /* widget text/foreground color on backdrop windows */
          @define-color theme_unfocused_fg_color #8b8c8e;
          /* text color for entries, views and content in general on backdrop windows */
          @define-color theme_unfocused_text_color #f8f8f2;
          /* widget base background color on backdrop windows */
          @define-color theme_unfocused_bg_color #1e1f29;
          /* text widgets and the like base background color on backdrop windows */
          @define-color theme_unfocused_base_color #2a2c39;
          /* base background color of selections on backdrop windows */
          @define-color theme_unfocused_selected_bg_color #ff79c6;
          /* text/foreground color of selections on backdrop windows */
          @define-color theme_unfocused_selected_fg_color #f8f8f2;
          /* widgets main borders color */
          @define-color borders rgba(25, 26, 34, 0.9);
          /* widgets main borders color on backdrop windows */
          @define-color unfocused_borders rgba(26, 27, 35, 0.91);
          /* these are pretty self explicative */
          @define-color warning_color #ff9f39;
          @define-color error_color #ff3c3c;
          @define-color success_color #4caec3;


          there are 67 entries with the color #ff79c6, i have replaced all of them with #456789 in single shot. if you want to try each individual, you have to make trial and error of those 67 entries.



          save the file & Close. Reboot to see the change.



          enter image description here






          share|improve this answer























          • I had thought of similar solution. But I was not able to find the exact color. How did you find it was this #ff79c6 color.
            – user23
            Nov 25 at 13:45










          • its generally bg_color some thing related to background.
            – PRATAP
            Nov 25 at 13:52










          • Please relook at "sudo -H nautilus /usr/share/themes/Ant-Dracula/gtk-3.20/gtk.css/". gtk.css is a file not a folder.
            – DK Bose
            Nov 25 at 14:23










          • @DKBose yes, when you run sudo -H nautilus /usr/share/themes/Ant-Dracula/gtk-3.20/gtk.css/ it will get selected and ready to open when you press enter.
            – PRATAP
            Nov 25 at 14:24















          up vote
          1
          down vote



          accepted







          up vote
          1
          down vote



          accepted






          we need to edit the file gtk.css



          access the file by



          sudo -H nautilus /usr/share/themes/Ant-Dracula/gtk-3.20/gtk.css/ change /usr/share/themes if you stored your file in ~/.themes



          find the color #ff79c6 and change it to your preferred color in the initial lines.
          it has major effect on themes.



          /* GTK NAMED COLORS
          ----------------
          use responsibly! */
          /* widget text/foreground color */
          @define-color theme_fg_color #f8f8f2;
          /* text color for entries, views and content in general */
          @define-color theme_text_color #f8f8f2;
          /* widget base background color */
          @define-color theme_bg_color #1e1f29;
          /* text widgets and the like base background color */
          @define-color theme_base_color #282a36;
          /* base background color of selections */
          @define-color theme_selected_bg_color #ff79c6;
          /* text/foreground color of selections */
          @define-color theme_selected_fg_color #f8f8f2;
          /* base background color of disabled widgets */
          @define-color insensitive_bg_color #22232e;
          /* text foreground color of disabled widgets */
          @define-color insensitive_fg_color #8b8c8e;
          /* disabled text widgets and the like base background color */
          @define-color insensitive_base_color #282a36;
          /* widget text/foreground color on backdrop windows */
          @define-color theme_unfocused_fg_color #8b8c8e;
          /* text color for entries, views and content in general on backdrop windows */
          @define-color theme_unfocused_text_color #f8f8f2;
          /* widget base background color on backdrop windows */
          @define-color theme_unfocused_bg_color #1e1f29;
          /* text widgets and the like base background color on backdrop windows */
          @define-color theme_unfocused_base_color #2a2c39;
          /* base background color of selections on backdrop windows */
          @define-color theme_unfocused_selected_bg_color #ff79c6;
          /* text/foreground color of selections on backdrop windows */
          @define-color theme_unfocused_selected_fg_color #f8f8f2;
          /* widgets main borders color */
          @define-color borders rgba(25, 26, 34, 0.9);
          /* widgets main borders color on backdrop windows */
          @define-color unfocused_borders rgba(26, 27, 35, 0.91);
          /* these are pretty self explicative */
          @define-color warning_color #ff9f39;
          @define-color error_color #ff3c3c;
          @define-color success_color #4caec3;


          there are 67 entries with the color #ff79c6, i have replaced all of them with #456789 in single shot. if you want to try each individual, you have to make trial and error of those 67 entries.



          save the file & Close. Reboot to see the change.



          enter image description here






          share|improve this answer














          we need to edit the file gtk.css



          access the file by



          sudo -H nautilus /usr/share/themes/Ant-Dracula/gtk-3.20/gtk.css/ change /usr/share/themes if you stored your file in ~/.themes



          find the color #ff79c6 and change it to your preferred color in the initial lines.
          it has major effect on themes.



          /* GTK NAMED COLORS
          ----------------
          use responsibly! */
          /* widget text/foreground color */
          @define-color theme_fg_color #f8f8f2;
          /* text color for entries, views and content in general */
          @define-color theme_text_color #f8f8f2;
          /* widget base background color */
          @define-color theme_bg_color #1e1f29;
          /* text widgets and the like base background color */
          @define-color theme_base_color #282a36;
          /* base background color of selections */
          @define-color theme_selected_bg_color #ff79c6;
          /* text/foreground color of selections */
          @define-color theme_selected_fg_color #f8f8f2;
          /* base background color of disabled widgets */
          @define-color insensitive_bg_color #22232e;
          /* text foreground color of disabled widgets */
          @define-color insensitive_fg_color #8b8c8e;
          /* disabled text widgets and the like base background color */
          @define-color insensitive_base_color #282a36;
          /* widget text/foreground color on backdrop windows */
          @define-color theme_unfocused_fg_color #8b8c8e;
          /* text color for entries, views and content in general on backdrop windows */
          @define-color theme_unfocused_text_color #f8f8f2;
          /* widget base background color on backdrop windows */
          @define-color theme_unfocused_bg_color #1e1f29;
          /* text widgets and the like base background color on backdrop windows */
          @define-color theme_unfocused_base_color #2a2c39;
          /* base background color of selections on backdrop windows */
          @define-color theme_unfocused_selected_bg_color #ff79c6;
          /* text/foreground color of selections on backdrop windows */
          @define-color theme_unfocused_selected_fg_color #f8f8f2;
          /* widgets main borders color */
          @define-color borders rgba(25, 26, 34, 0.9);
          /* widgets main borders color on backdrop windows */
          @define-color unfocused_borders rgba(26, 27, 35, 0.91);
          /* these are pretty self explicative */
          @define-color warning_color #ff9f39;
          @define-color error_color #ff3c3c;
          @define-color success_color #4caec3;


          there are 67 entries with the color #ff79c6, i have replaced all of them with #456789 in single shot. if you want to try each individual, you have to make trial and error of those 67 entries.



          save the file & Close. Reboot to see the change.



          enter image description here







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Nov 25 at 14:13

























          answered Nov 25 at 13:34









          PRATAP

          1,7271523




          1,7271523












          • I had thought of similar solution. But I was not able to find the exact color. How did you find it was this #ff79c6 color.
            – user23
            Nov 25 at 13:45










          • its generally bg_color some thing related to background.
            – PRATAP
            Nov 25 at 13:52










          • Please relook at "sudo -H nautilus /usr/share/themes/Ant-Dracula/gtk-3.20/gtk.css/". gtk.css is a file not a folder.
            – DK Bose
            Nov 25 at 14:23










          • @DKBose yes, when you run sudo -H nautilus /usr/share/themes/Ant-Dracula/gtk-3.20/gtk.css/ it will get selected and ready to open when you press enter.
            – PRATAP
            Nov 25 at 14:24




















          • I had thought of similar solution. But I was not able to find the exact color. How did you find it was this #ff79c6 color.
            – user23
            Nov 25 at 13:45










          • its generally bg_color some thing related to background.
            – PRATAP
            Nov 25 at 13:52










          • Please relook at "sudo -H nautilus /usr/share/themes/Ant-Dracula/gtk-3.20/gtk.css/". gtk.css is a file not a folder.
            – DK Bose
            Nov 25 at 14:23










          • @DKBose yes, when you run sudo -H nautilus /usr/share/themes/Ant-Dracula/gtk-3.20/gtk.css/ it will get selected and ready to open when you press enter.
            – PRATAP
            Nov 25 at 14:24


















          I had thought of similar solution. But I was not able to find the exact color. How did you find it was this #ff79c6 color.
          – user23
          Nov 25 at 13:45




          I had thought of similar solution. But I was not able to find the exact color. How did you find it was this #ff79c6 color.
          – user23
          Nov 25 at 13:45












          its generally bg_color some thing related to background.
          – PRATAP
          Nov 25 at 13:52




          its generally bg_color some thing related to background.
          – PRATAP
          Nov 25 at 13:52












          Please relook at "sudo -H nautilus /usr/share/themes/Ant-Dracula/gtk-3.20/gtk.css/". gtk.css is a file not a folder.
          – DK Bose
          Nov 25 at 14:23




          Please relook at "sudo -H nautilus /usr/share/themes/Ant-Dracula/gtk-3.20/gtk.css/". gtk.css is a file not a folder.
          – DK Bose
          Nov 25 at 14:23












          @DKBose yes, when you run sudo -H nautilus /usr/share/themes/Ant-Dracula/gtk-3.20/gtk.css/ it will get selected and ready to open when you press enter.
          – PRATAP
          Nov 25 at 14:24






          @DKBose yes, when you run sudo -H nautilus /usr/share/themes/Ant-Dracula/gtk-3.20/gtk.css/ it will get selected and ready to open when you press enter.
          – PRATAP
          Nov 25 at 14:24




















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Ask Ubuntu!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.





          Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


          Please pay close attention to the following guidance:


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1095904%2fchanging-selection-color-in-ubuntu18-10-themes%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          flock() on closed filehandle LOCK_FILE at /usr/bin/apt-mirror

          Mangá

          Eduardo VII do Reino Unido