Add IconsScale to editor interface options
This commit is contained in:
@@ -51,7 +51,6 @@ namespace FlaxEditor.Windows.Assets
|
||||
|
||||
_toolstrip = new ToolStrip
|
||||
{
|
||||
Offsets = new Margin(0, 0, 0, 32),
|
||||
Parent = this
|
||||
};
|
||||
_toolstrip.AddButton(editor.Icons.Find32, () => Editor.Windows.ContentWin.Select(_item)).LinkTooltip("Show and select in Content Window");
|
||||
|
||||
@@ -72,10 +72,9 @@ namespace FlaxEditor.Windows
|
||||
editor.ContentDatabase.ItemRemoved += ContentDatabaseOnItemRemoved;
|
||||
|
||||
// Toolstrip
|
||||
_toolStrip = new ToolStrip
|
||||
_toolStrip = new ToolStrip(34.0f)
|
||||
{
|
||||
Parent = this,
|
||||
Bounds = new Rectangle(0, 0, Width, 34),
|
||||
};
|
||||
_importButton = (ToolStripButton)_toolStrip.AddButton(Editor.Icons.Import32, () => Editor.ContentImporting.ShowImportFileDialog(CurrentViewFolder)).LinkTooltip("Import content");
|
||||
_toolStrip.AddSeparator();
|
||||
|
||||
@@ -282,9 +282,8 @@ namespace FlaxEditor.Windows
|
||||
OnEditorOptionsChanged(Editor.Options.Options);
|
||||
|
||||
// Toolstrip
|
||||
var toolstrip = new ToolStrip
|
||||
var toolstrip = new ToolStrip(22.0f)
|
||||
{
|
||||
Offsets = new Margin(0, 0, 0, 22),
|
||||
Parent = this,
|
||||
};
|
||||
toolstrip.AddButton("Clear", Clear).LinkTooltip("Clears all log entries");
|
||||
|
||||
@@ -36,7 +36,6 @@ namespace FlaxEditor.Windows
|
||||
|
||||
var toolstrip = new ToolStrip
|
||||
{
|
||||
Offsets = new Margin(0, 0, 0, 32),
|
||||
Parent = this
|
||||
};
|
||||
_saveButton = (ToolStripButton)toolstrip.AddButton(editor.Icons.Save32, SaveData).LinkTooltip("Save");
|
||||
|
||||
@@ -90,7 +90,6 @@ namespace FlaxEditor.Windows.Profiler
|
||||
|
||||
var toolstrip = new ToolStrip
|
||||
{
|
||||
Offsets = new Margin(0, 0, 0, 32),
|
||||
Parent = this,
|
||||
};
|
||||
_liveRecordingButton = toolstrip.AddButton(editor.Icons.Play32);
|
||||
|
||||
@@ -308,7 +308,7 @@ namespace FlaxEditor.Windows
|
||||
/// <inheritdoc />
|
||||
public override void OnInit()
|
||||
{
|
||||
float tabSize = 48 + Style.Current.IconSizeExtra;
|
||||
float tabSize = 48 * Editor.Options.Options.Interface.IconsScale;
|
||||
TabsControl = new Tabs
|
||||
{
|
||||
AnchorPreset = AnchorPresets.StretchAll,
|
||||
|
||||
@@ -399,7 +399,6 @@ namespace FlaxEditor.Windows
|
||||
|
||||
var toolstrip = new ToolStrip
|
||||
{
|
||||
Offsets = new Margin(0, 0, 0, 32),
|
||||
Parent = this
|
||||
};
|
||||
toolstrip.AddButton(editor.Icons.Docs32, () => Platform.OpenUrl(Utilities.Constants.DocsUrl + "manual/scripting/visual/index.html")).LinkTooltip("See documentation to learn more");
|
||||
@@ -416,7 +415,7 @@ namespace FlaxEditor.Windows
|
||||
var tabs = new Tabs
|
||||
{
|
||||
AnchorPreset = AnchorPresets.StretchAll,
|
||||
Offsets = new Margin(0, 0, 32, 0),
|
||||
Offsets = new Margin(0, 0, toolstrip.Bottom, 0),
|
||||
TabsSize = new Vector2(80, 20),
|
||||
TabsTextHorizontalAlignment = TextAlignment.Center,
|
||||
UseScroll = true,
|
||||
|
||||
Reference in New Issue
Block a user