Skip to content

Commit

Permalink
project: Bump version number
Browse files Browse the repository at this point in the history
  • Loading branch information
bragefuglseth committed May 29, 2024
1 parent eac5b84 commit 5656212
Show file tree
Hide file tree
Showing 6 changed files with 35 additions and 37 deletions.
18 changes: 2 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,10 @@
[![Proudly part of GNOME Circle](https://circle.gnome.org/assets/button/badge.svg)](https://circle.gnome.org)
[![Please do not theme this app](https://stopthemingmy.app/badge.svg)](https://stopthemingmy.app)

How was that chord played, again? Fretboard lets you find guitar chords
by typing their names or plotting them on an interactive guitar neck.
When you have identified a chord, you can experiment with changing it,
see more ways to play it, or bookmark it to save it for later. No matter
if you are a beginner or an advanced guitarist, you can use Fretboard to
practice, learn, and master your favorite songs!

![screenshot](/data/screenshots/screenshot-1.png)

How was that chord played, again? Fretboard lets you find guitar chords by typing their names or plotting them on an interactive guitar neck. When you have identified a chord, you can experiment with changing it, see more ways to play it, or bookmark it to save it for later. No matter if you are a beginner or an advanced guitarist, you can use Fretboard to practice, learn, and master your favorite songs!

## Installation

Fretboard is available on Flathub.
Expand All @@ -38,12 +33,3 @@ Please take this into consideration as well:
- This project follows the [GNOME Code of Conduct](https://conduct.gnome.org).
- Only Flatpak is officially supported.
- If you want to contribute major changes, please discuss them beforehand to verify that they are suitable for the project.

## Roadmap

- [ ] Richer chord information (notes used, etc.)

## Credits

The original chord data is borrowed from T-vK's [Chord Collection](https://github.com/t-vK/chord-collection). I've modified it to fit the needs of this app better.

13 changes: 13 additions & 0 deletions data/dev.bragefuglseth.Fretboard.metainfo.xml.in.in
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,19 @@
</supports>
<launchable type="desktop-id">@[email protected]</launchable>
<releases>
<release date="2024-05-29" version="7.0">
<description translate="no">
<p>Enjoy practicing some tunes for the summer with this fresh batch of improvements:</p>
<ul>
<li>Better name predictions when drawing chords on the diagram</li>
<li>Note names shown on hover for the neck top toggles, regardless of whether they’re open or muted</li>
<li>Reliable updates of note names when moving up and down the neck</li>
<li>Catalan, Japanese, and Hindi translations, making Fretboard available in a total of 21 languages</li>
</ul>
<p>As always, this update was made possible by volunteer bug reporters, developers, and translators. If you would like to come with suggestions, report bugs, translate the app, or contribute otherwise, feel free to reach out!</p>
</description>
</release>

<release date="2024-04-06" version="6.1">
<description translate="no">
<p>This update improves the translations of Fretboard into other languages.</p>
Expand Down
2 changes: 1 addition & 1 deletion meson.build
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
project('fretboard',
'rust',
version: '6.1',
version: '7.0',
license: 'GPL-3.0-or-later',
meson_version: '>= 0.62.0',
)
Expand Down
20 changes: 1 addition & 19 deletions src/application.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
use crate::FretboardWindow;
use adw::prelude::*;
use adw::subclass::prelude::*;
use gettextrs::gettext;
use gtk::{gio, glib};

mod imp {
Expand Down Expand Up @@ -88,10 +87,7 @@ impl FretboardApplication {
let quit_action = gio::ActionEntry::builder("quit")
.activate(move |app: &Self, _, _| app.quit())
.build();
let about_action = gio::ActionEntry::builder("about")
.activate(move |app: &Self, _, _| app.show_about())
.build();
self.add_action_entries([quit_action, about_action]);
self.add_action_entries([quit_action]);

self.set_accels_for_action("app.quit", &["<primary>q"]);
self.set_accels_for_action("window.close", &["<Ctrl>W"]);
Expand All @@ -102,18 +98,4 @@ impl FretboardApplication {
self.set_accels_for_action("win.bookmark-chord", &["<Ctrl>D"]);
self.set_accels_for_action("win.bookmarks", &["<Ctrl><Alt>D"]);
}

fn show_about(&self) {
let about = adw::AboutDialog::from_appdata(
"/dev/bragefuglseth/Fretboard/dev.bragefuglseth.Fretboard.metainfo.xml",
Some("6.0"),
);

about.set_developers(&["Brage Fuglseth https://bragefuglseth.dev"]);
about.set_copyright("© 2024 Brage Fuglseth");
// Translators: Replace "translator-credits" with your names, one name per line
about.set_translator_credits(&gettext("translator-credits"));

about.present(&self.active_window().unwrap());
}
}
2 changes: 1 addition & 1 deletion src/widgets/window.blp
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ menu primary_menu {

item {
label: _("_About Fretboard");
action: "app.about";
action: "win.about";
}
}
}
17 changes: 17 additions & 0 deletions src/widgets/window.rs
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,9 @@ mod imp {
klass.install_action("win.bookmark-chord", None, move |win, _, _| {
win.bookmark_chord();
});
klass.install_action("win.about", None, move |win, _, _| {
win.show_about_dialog();
});

klass.bind_template();
}
Expand Down Expand Up @@ -661,6 +664,20 @@ impl FretboardWindow {

imp.navigation_stack.push_by_tag("bookmarks");
}

fn show_about_dialog(&self) {
let about = adw::AboutDialog::from_appdata(
"/dev/bragefuglseth/Fretboard/dev.bragefuglseth.Fretboard.metainfo.xml",
Some("7.0"),
);

about.set_developers(&["Brage Fuglseth https://bragefuglseth.dev"]);
about.set_copyright("© 2024 Brage Fuglseth");
// Translators: Replace "translator-credits" with your names, one name per line
about.set_translator_credits(&gettext("translator-credits"));

about.present(self.root().unwrap().downcast_ref::<gtk::Window>().unwrap());
}
}

fn chord_data_path() -> PathBuf {
Expand Down

0 comments on commit 5656212

Please sign in to comment.