Ubuntu gnome 13.04 top panel Transparency/window maximization hide title bar

Source: Internet
Author: User

Reprinted Please note: transferred fromHttp://blog.csdn.net/u010811449/article/details/9424319

First look at the effect:


First, use geditto open gnome-shell.css for compilation.

sudo gedit /usr/share/gnome-shell/theme/gnome-shell.css  

First, change the size of the top panel. In my opinion, the default size is too large. To change the Panel size, you only need to change the Panel font size. Find the stage:

Stage {font-family: cantarell, sans-serif; font-size: 9.5pt ;}

Secondly, the pop-up menu of the Panel is more transparent. Find. Popup-menu-boxpointer:

. Popup-menu-boxpointer {-arrow-border-radius: 8px;/*-arrow-Background-color: black; * // This is the default black color of the system, for the sake of security, I just commented out the original-arrow-Background-color: rgba (0, 0, 0, 0.8); // change it to 0.8, do not be too transparent; otherwise, the text will not be clear-arrow-border-width: 2px;-arrow-border-color: # a5a5a5;-arrow-base: 24px;-arrow-rise: 11px ;}

Next, the Panel is transparent. Find the panel:

# Panel {/* Background-color: black; * // similarly, to safely comment out the original code: Background-color: rgba (0, 0, 0, 0.4 ); // adjust the transparency to 0.4. You can adjust font-weight: bold; Height: 1.86em;} according to your preference ;}

I like the rectangle of the Panel. It turns out that there are two radians on both sides. You can remove them and find. Panel-corner:

For security purpose, I did not remove the entire code segment, but commented out all of it.
/*.panel-corner {    -panel-corner-radius: 6px;    -panel-corner-background-color: black;    -panel-corner-border-width: 2px;    -panel-corner-border-color: transparent;}.panel-corner:active,.panel-corner:overview,.panel-corner:focus {    -panel-corner-border-color: rgba(255,255,255,0.8);}*/

In this way, the settings are ready, save and exit, ALT + F2, enter R, and press enter to see that the Panel is much better than the original one.


Ii. Hide the title bar when the window is maximized:

First look at the effect:




Open the terminal and enter:

Sudo gedit/usr/share/themes/zukitwo/metacity-1/metacity-theme-3.xml // Where zukitwo is my current topic folder, if changed, select the XML file in your current topic file for compilation

Find:

<frame_geometry name="max" title_scale="medium" parent="normal" rounded_top_left="false" rounded_top_right="false">

Changed:

<frame_geometry name="max" title_scale="medium" parent="normal" rounded_top_left="false" rounded_top_right="false" has_title="false">

The entire code segment is as follows:

<Frame_geometry name = "Max" title_scale = "medium" parent = "normal" rounded_top_left = "false" rounded_top_right = "false" has_title = "false"> <distance name = "left_width" value = "0"/> <distance name = "right_width" value = "0"/> <distance name = "left_titlebar_edge" value = "5"/> <distance name =" right_titlebar_edge "value =" 0 "/> <distance name =" title_vertical_pad "value =" 1 "/> // change the original value =" 8 "to the current value =" 1"
Restart to see the effect.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.