Extras.rsrc

From MacThemes Theming Wiki

Jump to: navigation, search

Extras.rsrc and Extras2.rsrc are user interface files that are present on Macs running Leopard which contain pre-Leopard graphics and information concerning text colors. Extras.rsrc is used by PowerPC Macs while Extras2.rsrc is the version for Intel Macs. They are by default, unused in 10.5 aside from scrollbars and the Save as PDF button in the print dialog. They provide a more or less complete theming solution for Mac OS X 10.5. Also, porting Tiger ShapeShifter .guikit themes over to 10.5 is possible.

It should be noted that this method involves disabling a part of the OS and will most likely become obsolete as more legitimate theming methods using either the ArtFiles or the Vector UI are uncovered.

The files are located in /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/Resources/ and can be edited with ThemePark.

Contents

Enabling Extras.rsrc in Leopard

To enable Extras.rsrc Leopard's CoreUI needs to be disabled. Type this line in Terminal:

 defaults write -g AppleUseCoreUI -bool NO

To re-enable CoreUI use this:

 defaults write -g AppleUseCoreUI -bool YES

In order to see the changes, the user has to log out and log back in.

Possible Modifications

This is a list of tweaks and fixes possible when using Extras.rsrc.

Fixing the Finder Toolbar (Segment Caps)

By default the Finder toolbar buttons are too tall. To fix this just ensure that the following resources have a height of 23:

5690, 5700, 5711, 13295, 13296, 13297, 13298, 13299, 13300 [1]

You can also download Leopard-style segment caps with the height fix applied over here

Disabling Leopard Window Textures

This disables the unified metal interface in Leopard and brings back the Tiger-style interface (Aqua and Metal) which uses graphics from the Extras.rsrc file. (from this thread)

defaults write NSGlobalDomain NSUseLeopardWindowValues NO

To re-enable Leopard windows use this:

defaults write NSGlobalDomain NSUseLeopardWindowValues YES

Modifying the Menubar

Note that even with Extras.rsrc support enabled, Leopard still uses menu bar resources from SArtFile.bin. In order to modify the Mac OS X menubar, you must edit the SArtFile.bin file.

Changing text colors

The CLR# section in ThemePark contains a list of colors controlling various aspects of the interface:

  • 00 → Dialog Active Text Color
  • 01 → Dialog Inactive Text Color
  • 02 → Alert Active Text Color
  • 03 → Alert Inactive Text Color
  • 04 → Modeless Dialog Active Text Color
  • 05 → Modeless Dialog Inactive Text Color
  • 06 → Window Header Active Text Color
  • 07 → Window Header Inactive Text Color
  • 08 → Placard Active Text Color
  • 09 → Placard Inactive Text Color
  • 10 → Placard Pressed Text Color
  • 11 → Push Button Active Text Color
  • 12 → Push Button Inactive Text Color
  • 13 → Push Button Pressed Text Color
  • 14 → Bevel Button Active Text Color
  • 15 → Bevel Button Inactive Text Color
  • 16 → Bevel Button Pressed Text Color
  • 17 → Popup Button Active Text Color
  • 18 → Popup Button Inactive Text Color
  • 19 → Popup Button Pressed Text Color
  • 20 → Icon Label Text Color
  • 21 → List View Text Color (and Open/Save dialog list color)
  • 22 → Document Window Title Active Text Color
  • 23 → Document Window Title Inactive Text Color
  • 24 → Movable Modal Window Title Active Text Color
  • 25 → Movable Modal Window Title Inactive Text Color
  • 26 → Utility Window Title Active Text Color
  • 27 → Utility Window Title Inactive Text Color
  • 38 → Popup Window Title Active Text Color
  • 29 → Popup Window Title Inactive Text Color
  • 30 → Active menu title text color
  • 31 → Selected menu title text color
  • 32 → Disabled menu title text color (OS uses a lighter variation)
  • 33 → Active menu item text color
  • 34 → Selected menu item text color
  • 35 → Inactive menu item text color (OS uses a lighter variation)
  • 36 → Popup Label Active Text Color
  • 37 → Popup Label Inactive Text Color
  • 38 → Tab Front Active Text Color
  • 39 → Tab Non Front Active Text Color
  • 40 → Tab Non Front Pressed Text Color
  • 41 → Tab Front Inactive Text Color
  • 42 → Tab Non Front Inactive Text Color
  • 43 → Icon Label Selected Text Color
  • 44 → Bevel Button Sticky Active Text Color
  • 45 → Bevel Button Sticky Inactive Text Color
  • 46 → ?
  • 47 → Finder file sub-labels

References

Disabling CoreUI MacThemes2 Thread postulating disabling CoreUI.

Personal tools