Use Icon instead of Text buttons for Configure actions
- Issue MatterHackers/MCCentral#2699
This commit is contained in:
parent
c6d5605893
commit
155a175dfa
3 changed files with 17 additions and 9 deletions
|
|
@ -65,6 +65,8 @@ namespace MatterHackers.MatterControl.ConfigurationPage
|
|||
// Camera Monitoring
|
||||
bool hasCamera = true || ApplicationSettings.Instance.get(ApplicationSettingsKey.HardwareHasCamera) == "true";
|
||||
|
||||
var configureIcon = AggContext.StaticData.LoadIcon("fa-cog_16.png", IconColor.Raw);
|
||||
|
||||
var previewButton = buttonFactory.Generate("Preview".Localize().ToUpper());
|
||||
previewButton.Click += (s, e) =>
|
||||
{
|
||||
|
|
@ -87,10 +89,13 @@ namespace MatterHackers.MatterControl.ConfigurationPage
|
|||
);
|
||||
|
||||
// Print Notifications
|
||||
var configureNotificationsButton = buttonFactory.Generate("Configure".Localize().ToUpper());
|
||||
configureNotificationsButton.Name = "Configure Notification Settings Button";
|
||||
configureNotificationsButton.Margin = new BorderDouble(left: 6);
|
||||
configureNotificationsButton.VAnchor = VAnchor.Center;
|
||||
var configureNotificationsButton = new IconButton(configureIcon, theme)
|
||||
{
|
||||
Name = "Configure Notification Settings Button",
|
||||
ToolTipText = "Configure Notifications".Localize(),
|
||||
Margin = new BorderDouble(left: 6),
|
||||
VAnchor = VAnchor.Center
|
||||
};
|
||||
configureNotificationsButton.Click += (s, e) =>
|
||||
{
|
||||
if (OpenPrintNotification != null)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue