Skip to content

Commit

Permalink
mac: fix some style inconsistencies in statusicon and eventlog
Browse files Browse the repository at this point in the history
  • Loading branch information
hbons committed Mar 18, 2012
1 parent 7bbc41a commit 9eadf90
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 6 deletions.
8 changes: 8 additions & 0 deletions SparkleShare/Mac/SparkleEventLog.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ public class SparkleEventLog : NSWindow {

private WebView web_view;
private NSBox separator;
private NSBox background;
private NSPopUpButton popup_button;
private NSProgressIndicator progress_indicator;
private NSTextField size_label;
Expand Down Expand Up @@ -132,6 +133,12 @@ public SparkleEventLog () : base ()
};


this.background = new NSBox (new RectangleF (0, -1, 481, 581)) {
FillColor = NSColor.White,
BoxType = NSBoxType.NSBoxCustom
};


this.progress_indicator = new NSProgressIndicator () {
Style = NSProgressIndicatorStyle.Spinning,
Frame = new RectangleF (this.web_view.Frame.Width / 2 - 10,
Expand All @@ -145,6 +152,7 @@ public SparkleEventLog () : base ()
ContentView.AddSubview (this.size_label_value);
ContentView.AddSubview (this.history_label);
ContentView.AddSubview (this.history_label_value);
ContentView.AddSubview (this.background);
ContentView.AddSubview (this.separator);
ContentView.AddSubview (this.progress_indicator);
ContentView.AddSubview (this.hidden_close_button);
Expand Down
2 changes: 1 addition & 1 deletion SparkleShare/Mac/SparkleShare.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<RootNamespace>SparkleShare</RootNamespace>
<AssemblyName>SparkleShare</AssemblyName>
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
<ReleaseVersion>0.8.3</ReleaseVersion>
<ReleaseVersion>0.8.4</ReleaseVersion>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
Expand Down
2 changes: 1 addition & 1 deletion SparkleShare/Mac/SparkleShare.sln
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@ Global
EndGlobalSection
GlobalSection(MonoDevelopProperties) = preSolution
StartupItem = SparkleShare.csproj
version = 0.8.3
version = 0.8.4
EndGlobalSection
EndGlobal
8 changes: 4 additions & 4 deletions SparkleShare/Mac/SparkleStatusIcon.cs
Original file line number Diff line number Diff line change
Expand Up @@ -253,20 +253,20 @@ public void CreateMenu ()


Menu.AddItem (SyncMenuItem);
Menu.AddItem (NSMenuItem.SeparatorItem);


RecentEventsMenuItem = new NSMenuItem () {
Title = "View Recent Changes…",
Enabled = (Controller.Folders.Length > 0)
};

if (Controller.Folders.Length > 0) {
RecentEventsMenuItem.Activated += delegate {
Controller.OpenRecentEventsClicked ();
};
}

Menu.AddItem (RecentEventsMenuItem);
Menu.AddItem (NSMenuItem.SeparatorItem);

NotificationsMenuItem = new NSMenuItem () {
Enabled = true
Expand Down

0 comments on commit 9eadf90

Please sign in to comment.