Close window clicking top right corner

Hi everyone. Im' back to Zorin for my Desktop and I'm very happy with it because my workflow is similar as it was in Windows or even better sometimes. But I have a little inconvenience with the "X" close buttons. In Windows I could go to the top right corner without looking and close the window, but in the default Zorin theme I have to be precise because the hitbox seems smaller. Can I solve it just installing a different theme???

That is because the Buttons are round and not square like on Windows. You would have 2 Options to make something:

  1. You use a third-party Theme which offers square Buttons
  2. You create a .css File to set up square Buttons.

For Point 1: I know Themes who offer that. That would be:

For both Themes You have to run the install.sh Script with the square Button Tweak. That is all explained in the Description.

For Point 2: Here was a thread who described a .css fle with Values what You could use. Unfortunately I didn't find it so fast but here are the Values:

headerbar
{
	padding-right: 10px;
}

.titlebutton
{
	min-width: 30px;
	min-height: 30px;
	padding: 2px;
	margin: 0px;
	color: white;
	font-size: 44px;
	background: transparent;
	
}

.titlebutton.close:hover
{
	min-width: 30px;
	min-height: 30px;
	padding: 2px;
	margin: 2px;
	color: white;
	font-size: 44px;
	background: #db0000;
	border-radius: 1px;
}

.titlebutton.maximize:hover
{
	min-width: 30px;
	min-height: 30px;
	padding: 2px;
	margin: 2px;
	color: white;
	font-size: 44px;
	background: #404347;
	border-radius: 1px;
}

.titlebutton.minimize:hover
{
	min-width: 30px;
	min-height: 30px;
	padding: 2px;
	margin: 2px;
	color: white;
	font-size: 44px;
	background: #404347;
	border-radius: 1px;
}

You have to play a bit with the Values to set it up like You want. It is Trial and Error. You must save this as a .css file and put it to ~/.conf/gtk-3.0/ and ~/.conf/gtk-4.0/

The second solution was a little hard for me hahaha. But I find an alternative that works. Just installed Hot Corners and added the funcionality of closing the window to the left click. Is not perfect but works. Thank you for your response! Have a nice day

1 Like