Files
ReLibreHardwareMonitor/LibreHardwareMonitor/UI/AboutBox.cs
T
Michael Rogers 2e207a4523 Add theme and plot thickness options (#847)
* Add theme and plot thickness options

* Cleanup

* Fixed themes, and made it so the plot colors are updated when the theme is changed

* I think supporting themes beyond dark, light, and black is unecessary for the time being.

* recall theme from settings before instantiating plot

* Check for null setting

* committing to merge

* Fix

* Cleanup

* Cleanup

* Fix from comments. Thank you kamkie!

* Fixing last UI bugs

* Fix windowed plot not theming on relaunch, change theme, show plot
2024-07-31 16:42:22 +02:00

37 lines
1.4 KiB
C#

// This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
// If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
// Copyright (C) LibreHardwareMonitor and Contributors.
// Partial Copyright (C) Michael Möller <mmoeller@openhardwaremonitor.org> and Contributors.
// All Rights Reserved.
using System.Diagnostics;
using System.Drawing;
using System.Windows.Forms;
using LibreHardwareMonitor.UI.Themes;
namespace LibreHardwareMonitor.UI;
public sealed partial class AboutBox : Form
{
public AboutBox()
{
InitializeComponent();
Font = SystemFonts.MessageBoxFont;
label3.Text = "Version " + Application.ProductVersion;
projectLinkLabel.Links.Remove(projectLinkLabel.Links[0]);
projectLinkLabel.Links.Add(0, projectLinkLabel.Text.Length, "https://github.com/LibreHardwareMonitor/LibreHardwareMonitor");
licenseLinkLabel.Links.Remove(licenseLinkLabel.Links[0]);
licenseLinkLabel.Links.Add(0, licenseLinkLabel.Text.Length, "https://www.mozilla.org/en-US/MPL/2.0/");
Theme.Current.Apply(this);
}
private void LinkLabel_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
{
try
{
Process.Start(new ProcessStartInfo(e.Link.LinkData.ToString()));
}
catch { }
}
}