mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 20:42:21 +02:00
More scaling fixes, frameless combo box for status bar
This commit is contained in:
parent
990d092274
commit
385fa6dbb5
10 changed files with 30 additions and 17 deletions
BIN
IDE/dist/images/DarkUI.png
vendored
BIN
IDE/dist/images/DarkUI.png
vendored
Binary file not shown.
Before Width: | Height: | Size: 31 KiB After Width: | Height: | Size: 31 KiB |
BIN
IDE/dist/images/DarkUI.psd
vendored
BIN
IDE/dist/images/DarkUI.psd
vendored
Binary file not shown.
BIN
IDE/dist/images/DarkUI_2.png
vendored
BIN
IDE/dist/images/DarkUI_2.png
vendored
Binary file not shown.
Before Width: | Height: | Size: 52 KiB After Width: | Height: | Size: 52 KiB |
BIN
IDE/dist/images/DarkUI_4.png
vendored
BIN
IDE/dist/images/DarkUI_4.png
vendored
Binary file not shown.
Before Width: | Height: | Size: 94 KiB After Width: | Height: | Size: 94 KiB |
|
@ -1877,7 +1877,7 @@ namespace IDE.ui
|
|||
if (propIdx == 0)
|
||||
{
|
||||
var comboBox = new DarkComboBox();
|
||||
comboBox.mFrameless = true;
|
||||
comboBox.mFrameKind = .Transparent;
|
||||
comboBox.mPopulateMenuAction.Add(new (menu) => { PopulateComboBox(menu, propEntries); });
|
||||
subItem.AddWidget(comboBox);
|
||||
subItem.mOnResized.Add(new (evt) => { comboBox.Resize(0, 0, GetValueEditWidth(subItem), subItem.mHeight + 1); });
|
||||
|
|
|
@ -27,11 +27,13 @@ namespace IDE.ui
|
|||
|
||||
public this()
|
||||
{
|
||||
mConfigComboBox = new DarkComboBox();
|
||||
mConfigComboBox = new DarkComboBox();
|
||||
mConfigComboBox.mFrameKind = .Frameless;
|
||||
mConfigComboBox.mPopulateMenuAction.Add(new => PopulateConfigMenu);
|
||||
AddWidget(mConfigComboBox);
|
||||
|
||||
mPlatformComboBox = new DarkComboBox();
|
||||
mPlatformComboBox = new DarkComboBox();
|
||||
mPlatformComboBox.mFrameKind = .Frameless;
|
||||
mPlatformComboBox.mPopulateMenuAction.Add(new => PopulatePlatformMenu);
|
||||
AddWidget(mPlatformComboBox);
|
||||
}
|
||||
|
@ -94,8 +96,8 @@ namespace IDE.ui
|
|||
void ResizeComponents()
|
||||
{
|
||||
int btnLeft = gApp.mSettings.mEnableDevMode ? GS!(380) : GS!(300);
|
||||
mConfigComboBox.Resize(mWidth - btnLeft, 0, GS!(120), mHeight + 2);
|
||||
mPlatformComboBox.Resize(mWidth - btnLeft - GS!(120), 0, GS!(120), mHeight + 2);
|
||||
mConfigComboBox.Resize(mWidth - btnLeft, GS!(0), GS!(120), GS!(24));
|
||||
mPlatformComboBox.Resize(mWidth - btnLeft - GS!(120), GS!(0), GS!(120), GS!(24));
|
||||
|
||||
if (mCancelSymSrvButton != null)
|
||||
mCancelSymSrvButton.Resize(GS!(546), 0, GS!(20), GS!(20));
|
||||
|
|
|
@ -634,7 +634,7 @@ namespace IDE.ui
|
|||
configItem = listViewItem.CreateSubItem(1);
|
||||
configItem.Label = configSelection.mConfig;
|
||||
configComboBox = new DarkComboBox();
|
||||
configComboBox.mFrameless = true;
|
||||
configComboBox.mFrameKind = .Transparent;
|
||||
configComboBox.mPopulateMenuAction.Add(new (menu) => { PopulateProjectConfigMenu(menu, configItem, project, newConfigSelection); });
|
||||
configItem.AddWidget(configComboBox);
|
||||
configItem.mOnResized.Add(new (evt) => { configComboBox.Resize(0, 0, configItem.mWidth, configItem.mHeight + 1); });
|
||||
|
@ -643,7 +643,7 @@ namespace IDE.ui
|
|||
platformItem = listViewItem.CreateSubItem(2);
|
||||
platformItem.Label = configSelection.mPlatform;
|
||||
platformComboBox = new DarkComboBox();
|
||||
platformComboBox.mFrameless = true;
|
||||
platformComboBox.mFrameKind = .Transparent;
|
||||
platformComboBox.mPopulateMenuAction.Add(new (menu) => { PopulateProjectPlatformMenu(menu, platformItem, project, newConfigSelection); });
|
||||
platformItem.AddWidget(platformComboBox);
|
||||
platformItem.mOnResized.Add(new (evt) => { platformComboBox.Resize(0, 0, GetValueEditWidth(platformItem), platformItem.mHeight + 1); });
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue