1. TortoiseHg
  2. TortoiseHg
  3. thg

Commits

Peer Sommerlund  committed 67fc684

thgconfig: Let dialog icon show scope

The configuration dialog now uses two icons instead of one,
so the user can look at the dialog icon and determine if
it is user settings or repo settings that are modified.

The icon for user settings shows a green man
The icon for repo settings shows a yellow barrel

Comments (0)

Files changed (3)

File hggtk/thgconfig.py Modified

View file
  • Ignore whitespace
  • Hide word diff
             name = repo.ui.config('web', 'name') or os.path.basename(repo.root)
             self.rcpath = [os.sep.join([repo.root, '.hg', 'hgrc'])]
             self.set_title('TortoiseHg Configure Repository - ' + name)
+            shlib.set_tortoise_icon(self, 'settings_repo.ico')
             self.root = repo.root
         else:
             self.rcpath = util.user_rcpath()
             self.set_title('TortoiseHg Configure User-Global Settings')
+            shlib.set_tortoise_icon(self, 'settings_user.ico')
             self.root = None
 
-        shlib.set_tortoise_icon(self, 'menusettings.ico')
         self.ini = self.load_config(self.rcpath)
 
         # Create a new notebook, place the position of the tabs

File icons/tortoise/settings_repo.ico Added

  • Ignore whitespace
  • Hide word diff

File icons/tortoise/settings_user.ico Added

  • Ignore whitespace
  • Hide word diff