mirror of
https://github.com/robbert-vdh/nih-plug.git
synced 2026-07-01 02:36:54 +00:00
Make the Spectral Compressor title link to GitHub
This commit is contained in:
@@ -14,3 +14,6 @@ nih_plug = { path = "../../", features = ["assert_process_allocs"] }
|
||||
nih_plug_vizia = { path = "../../nih_plug_vizia" }
|
||||
|
||||
realfft = "3.0"
|
||||
|
||||
# For the GUI
|
||||
open = "3.0"
|
||||
|
||||
@@ -60,7 +60,15 @@ pub(crate) fn create(
|
||||
.font_family(vec![FamilyOwned::Name(String::from(
|
||||
assets::NOTO_SANS_THIN,
|
||||
))])
|
||||
.font_size(30.0);
|
||||
.font_size(30.0)
|
||||
.on_mouse_down(|_, _| {
|
||||
// Try to open the plugin's page when clicking on the title. If this fails
|
||||
// then that's not a problem
|
||||
let result = open::that(SpectralCompressor::URL);
|
||||
if cfg!(debug) && result.is_err() {
|
||||
nih_debug_assert_failure!("Failed to open web browser: {:?}", result);
|
||||
}
|
||||
});
|
||||
Label::new(cx, SpectralCompressor::VERSION)
|
||||
.color(DARKER_GRAY)
|
||||
.top(Stretch(1.0))
|
||||
|
||||
Reference in New Issue
Block a user