Changeset 4106


Ignore:
Timestamp:
Dec 9, 2007, 3:25:33 AM (15 years ago)
Author:
livings124
Message:

experiment with making the info and filter toobar images blue when visiable

Location:
trunk
Files:
2 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Transmission.xcodeproj/project.pbxproj

    r4104 r4106  
    163163                A2F41DA90D0B9152006CE378 /* ActionGear.png in Resources */ = {isa = PBXBuildFile; fileRef = A2F41DA80D0B9152006CE378 /* ActionGear.png */; };
    164164                A2F41DAB0D0B916B006CE378 /* YingYangTemplate.png in Resources */ = {isa = PBXBuildFile; fileRef = A2F41DAA0D0B916B006CE378 /* YingYangTemplate.png */; };
     165                A2F41DBC0D0B96C0006CE378 /* FilterBlue.png in Resources */ = {isa = PBXBuildFile; fileRef = A2F41DBA0D0B96C0006CE378 /* FilterBlue.png */; };
     166                A2F41DBD0D0B96C0006CE378 /* InfoBlue.png in Resources */ = {isa = PBXBuildFile; fileRef = A2F41DBB0D0B96C0006CE378 /* InfoBlue.png */; };
    165167                A2FB057F0BFEB6800095564D /* DragOverlayView.m in Sources */ = {isa = PBXBuildFile; fileRef = A2FB057D0BFEB6800095564D /* DragOverlayView.m */; };
    166168                A2FE61D80CD3D0A500D683E1 /* InfoTabBackGraphite.png in Resources */ = {isa = PBXBuildFile; fileRef = A2FE61D70CD3D0A500D683E1 /* InfoTabBackGraphite.png */; };
     
    564566                A2F41DA80D0B9152006CE378 /* ActionGear.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = ActionGear.png; path = macosx/Images/ActionGear.png; sourceTree = "<group>"; };
    565567                A2F41DAA0D0B916B006CE378 /* YingYangTemplate.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = YingYangTemplate.png; path = macosx/Images/YingYangTemplate.png; sourceTree = "<group>"; };
     568                A2F41DBA0D0B96C0006CE378 /* FilterBlue.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = FilterBlue.png; path = macosx/Images/FilterBlue.png; sourceTree = "<group>"; };
     569                A2F41DBB0D0B96C0006CE378 /* InfoBlue.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = InfoBlue.png; path = macosx/Images/InfoBlue.png; sourceTree = "<group>"; };
    566570                A2F8951E0A2D4BA500ED2127 /* Credits.rtf */ = {isa = PBXFileReference; lastKnownFileType = text.rtf; name = Credits.rtf; path = macosx/Credits.rtf; sourceTree = "<group>"; };
    567571                A2FB057C0BFEB6800095564D /* DragOverlayView.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; name = DragOverlayView.h; path = macosx/DragOverlayView.h; sourceTree = "<group>"; };
     
    884888                                4D2784360905709500687951 /* Transmission.icns */,
    885889                                4D043A7E090AE979009FEDA8 /* TransmissionDocument.icns */,
     890                                A232D29D0A70903E00973B12 /* Filter.png */,
     891                                A2F41DBA0D0B96C0006CE378 /* FilterBlue.png */,
    886892                                4DF7500808A103AD007B0D70 /* Info.png */,
     893                                A2F41DBB0D0B96C0006CE378 /* InfoBlue.png */,
    887894                                4DF7500708A103AD007B0D70 /* Open.png */,
    888895                                A2E9AA750C249AF400085DCF /* Create.png */,
     
    913920                                A22BC9A20C5BBCF100F5FB72 /* BottomBack.png */,
    914921                                A22D3AB90D00D31F0079CFED /* BottomBackInactive.png */,
    915                                 A232D29D0A70903E00973B12 /* Filter.png */,
    916922                                A2F151210CD438DE001F3B0E /* InfoTabBorder.png */,
    917923                                A2F151220CD438DE001F3B0E /* InfoTabBack.png */,
     
    15661572                                A2F41DA90D0B9152006CE378 /* ActionGear.png in Resources */,
    15671573                                A2F41DAB0D0B916B006CE378 /* YingYangTemplate.png in Resources */,
     1574                                A2F41DBC0D0B96C0006CE378 /* FilterBlue.png in Resources */,
     1575                                A2F41DBD0D0B96C0006CE378 /* InfoBlue.png in Resources */,
    15681576                        );
    15691577                        runOnlyForDeploymentPostprocessing = 0;
  • trunk/macosx/Controller.m

    r4103 r4106  
    27232723        [item setTarget: self];
    27242724        [item setAction: @selector(showInfo:)];
    2725         [item setAutovalidates: NO];
    27262725       
    27272726        return item;
     
    28152814        [item setTarget: self];
    28162815        [item setAction: @selector(toggleFilterBar:)];
    2817         [item setAutovalidates: NO];
    28182816       
    28192817        return item;
     
    29252923                return YES;
    29262924        return NO;
     2925    }
     2926   
     2927    //set info image
     2928    if ([ident isEqualToString: TOOLBAR_INFO])
     2929    {
     2930        [toolbarItem setImage: [[fInfoController window] isVisible] ? [NSImage imageNamed: @"InfoBlue"]
     2931                                                                    : [NSImage imageNamed: @"Info"]];
     2932        return YES;
     2933    }
     2934   
     2935    //set filter image
     2936    if ([ident isEqualToString: TOOLBAR_FILTER])
     2937    {
     2938        [toolbarItem setImage: ![fFilterBar isHidden] ? [NSImage imageNamed: @"FilterBlue"] : [NSImage imageNamed: @"Filter"]];
     2939        return YES;
    29272940    }
    29282941
Note: See TracChangeset for help on using the changeset viewer.