Skip to content

Commit

Permalink
redesigned toolbar
Browse files Browse the repository at this point in the history
  • Loading branch information
andererandre committed Oct 28, 2011
1 parent 1b854ec commit 5c57728
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 2 deletions.
3 changes: 3 additions & 0 deletions Notedown.Mac/Main.cs
Expand Up @@ -18,6 +18,9 @@ static void Main(string[] args)
v.BorderType = NSBorderType.NoBorder;
c.RichText = false;
});
Style.Add("ToolBar", (w) => { var v = w.ControlObject as NSToolbar;;
v.DisplayMode = NSToolbarDisplayMode.Icon;
});

var generator = new Eto.Platform.Mac.Generator();
var app = new Program(generator);
Expand Down
4 changes: 3 additions & 1 deletion Notedown/MainForm.cs
Expand Up @@ -105,10 +105,12 @@ private void GenerateToolBar(GenerateActionArgs args)
args.ToolBar.Add(Actions.New.ActionID);
args.ToolBar.Add(Actions.Delete.ActionID);
args.ToolBar.Add(Actions.Rename.ActionID);
args.ToolBar.AddFlexibleSpace();
args.ToolBar.Add(Actions.Preferences.ActionID);
args.ToolBar.Add(Actions.About.ActionID);
//args.ToolBar.Add(Actions.About.ActionID);

this.ToolBar = args.ToolBar.GenerateToolBar();
this.ToolBar.Style = "ToolBar";
}
}
}
2 changes: 1 addition & 1 deletion Notedown/Notedown.csproj
Expand Up @@ -32,7 +32,7 @@
<ItemGroup>
<Reference Include="System" />
<Reference Include="System.Configuration" />
<Reference Include="Eto, Version=1.0.1.31755, Culture=neutral, PublicKeyToken=null">
<Reference Include="Eto, Version=1.0.1.34327, Culture=neutral, PublicKeyToken=null">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\.References\Eto.dll</HintPath>
</Reference>
Expand Down
Binary file modified Notedown/Resources/toolbar-preferences.ico
Binary file not shown.
Binary file modified Notedown/Resources/toolbar-rename.ico
Binary file not shown.

0 comments on commit 5c57728

Please sign in to comment.