Tuesday, October 26, 2010

FireFox - Color/Highlight The Active Tab

If you want the active tab to stand out in your current tab exactly like below:


Then edit your userChrome.css file located in your profile folder and add the following lines:

tab[selected="true"] {
  background-color: rgb(205,69,50) !important;
  color: black !important;
}

tab {
  -moz-appearance: none !important;
}

Wednesday, October 20, 2010

Change the Windows 7 Taskbar Button Length or Width Size

Windows 7 Taskbar can be set to display on program icons only with all additional tabs or icons combine into stack, or as a buttons with application icon and label with each window has its own button on the Taskbar. By default, the length or width of the button or icon on Taskbar is fixed, and Windows 7 only allows user to change the size of Taskbar pinned icons and buttons together with font to standard or smaller.

With the following registry trick, user can also change or adjust the width, or length of the buttons appear on the Windows 7 Taskbar. The hack has been used to simulate “not combine or stack but hide labels” option to limit the width of buttons with label so that label (text after the icon on button which normally takes the form of window’s title) is hidden and the button is left with just the icon.

How to Adjust Button Length or Width Size in Windows 7 Taskbar

   1. Run Registry Editor (RegEdit).
   2. Navigate to the following registry key:

      HKEY_CURRENT_USER\Control Panel\Desktop\WindowMetrics
   3. Right click on a blank space on the right pane, select New, then String Value. Name the new string value as MinWidth.

      Note: If “MinWidth” already exists, skip this step.
   4. Double click on “MinWidth”, and change the value data according to the preferred size. By default, Windows 7 has the following MinWidth value (estimated), when MinWidth is not defined or not created:

      Button with standard or normal icons: 56
      Button with small icons: 40

      MinWidth
   5. Restart the computer, or log off and log on again.

Note: Above change button width trick only work when Taskbar is set to display “button”, which mean it doesn’t work is Taskbar buttons’ behavior is set to “Always combine, hide labels”, where Windows 7 will always use it default size for icon-only button.