Skip to content

Commit

Permalink
refactor: use snake case on ui files
Browse files Browse the repository at this point in the history
  • Loading branch information
SeaDve committed Aug 23, 2024
1 parent 08c1b51 commit dd6e757
Show file tree
Hide file tree
Showing 31 changed files with 30 additions and 30 deletions.
30 changes: 15 additions & 15 deletions data/resources/resources.gresource.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,22 +5,22 @@
<file compressed="true" preprocess="xml-stripblanks">icons/scalable/status/network-offline-symbolic.svg</file>
<file compressed="true" preprocess="xml-stripblanks">icons/scalable/status/selection-mode-symbolic.svg</file>
<file compressed="true">style.css</file>
<file compressed="true" preprocess="xml-stripblanks">ui/album-cover.ui</file>
<file compressed="true" preprocess="xml-stripblanks">ui/external-link-tile.ui</file>
<file compressed="true" preprocess="xml-stripblanks">ui/history-view.ui</file>
<file compressed="true" preprocess="xml-stripblanks">ui/information-row.ui</file>
<file compressed="true" preprocess="xml-stripblanks">ui/inspector-page.ui</file>
<file compressed="true" preprocess="xml-stripblanks">ui/lyrics-page.ui</file>
<file compressed="true" preprocess="xml-stripblanks">ui/playback-button.ui</file>
<file compressed="true" preprocess="xml-stripblanks">ui/preferences-dialog.ui</file>
<file compressed="true" preprocess="xml-stripblanks">ui/recognized-page.ui</file>
<file compressed="true" preprocess="xml-stripblanks">ui/recognized-page-tile.ui</file>
<file compressed="true" preprocess="xml-stripblanks">ui/recognizer-status.ui</file>
<file compressed="true" preprocess="xml-stripblanks">ui/recognizer-view.ui</file>
<file compressed="true" preprocess="xml-stripblanks">ui/album_cover.ui</file>
<file compressed="true" preprocess="xml-stripblanks">ui/external_link_tile.ui</file>
<file compressed="true" preprocess="xml-stripblanks">ui/history_view.ui</file>
<file compressed="true" preprocess="xml-stripblanks">ui/information_row.ui</file>
<file compressed="true" preprocess="xml-stripblanks">ui/inspector_page.ui</file>
<file compressed="true" preprocess="xml-stripblanks">ui/lyrics_page.ui</file>
<file compressed="true" preprocess="xml-stripblanks">ui/playback_button.ui</file>
<file compressed="true" preprocess="xml-stripblanks">ui/preferences_dialog.ui</file>
<file compressed="true" preprocess="xml-stripblanks">ui/recognized_page.ui</file>
<file compressed="true" preprocess="xml-stripblanks">ui/recognized_page_tile.ui</file>
<file compressed="true" preprocess="xml-stripblanks">ui/recognizer_status.ui</file>
<file compressed="true" preprocess="xml-stripblanks">ui/recognizer_view.ui</file>
<file compressed="true" preprocess="xml-stripblanks" alias="gtk/help-overlay.ui">ui/shortcuts.ui</file>
<file compressed="true" preprocess="xml-stripblanks">ui/song-bar.ui</file>
<file compressed="true" preprocess="xml-stripblanks">ui/song-page.ui</file>
<file compressed="true" preprocess="xml-stripblanks">ui/song-tile.ui</file>
<file compressed="true" preprocess="xml-stripblanks">ui/song_bar.ui</file>
<file compressed="true" preprocess="xml-stripblanks">ui/song_page.ui</file>
<file compressed="true" preprocess="xml-stripblanks">ui/song_tile.ui</file>
<file compressed="true" preprocess="xml-stripblanks">ui/window.ui</file>
</gresource>
</gresources>
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion src/inspector_page.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ mod imp {

#[derive(Default, glib::Properties, gtk::CompositeTemplate)]
#[properties(wrapper_type = super::InspectorPage)]
#[template(resource = "/io/github/seadve/Mousai/ui/inspector-page.ui")]
#[template(resource = "/io/github/seadve/Mousai/ui/inspector_page.ui")]
pub struct InspectorPage {
/// Title of this inspector page
#[property(get = |_| INSPECTOR_TITLE.to_string())]
Expand Down
2 changes: 1 addition & 1 deletion src/preferences_dialog.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ mod imp {

#[derive(Default, glib::Properties, gtk::CompositeTemplate)]
#[properties(wrapper_type = super::PreferencesDialog)]
#[template(resource = "/io/github/seadve/Mousai/ui/preferences-dialog.ui")]
#[template(resource = "/io/github/seadve/Mousai/ui/preferences_dialog.ui")]
pub struct PreferencesDialog {
#[property(get, set, construct_only)]
pub(super) settings: OnceCell<Settings>,
Expand Down
2 changes: 1 addition & 1 deletion src/window/album_cover.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ mod imp {

#[derive(Default, glib::Properties, gtk::CompositeTemplate)]
#[properties(wrapper_type = super::AlbumCover)]
#[template(resource = "/io/github/seadve/Mousai/ui/album-cover.ui")]
#[template(resource = "/io/github/seadve/Mousai/ui/album_cover.ui")]
pub struct AlbumCover {
#[property(get = Self::pixel_size, set = Self::set_pixel_size, minimum = -1, default = -1, explicit_notify)]
pub(super) pixel_size: PhantomData<i32>,
Expand Down
2 changes: 1 addition & 1 deletion src/window/external_link_tile.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ mod imp {

#[derive(Default, glib::Properties, gtk::CompositeTemplate)]
#[properties(wrapper_type = super::ExternalLinkTile)]
#[template(resource = "/io/github/seadve/Mousai/ui/external-link-tile.ui")]
#[template(resource = "/io/github/seadve/Mousai/ui/external_link_tile.ui")]
pub struct ExternalLinkTile {
/// Link shown by Self
#[property(get, set, construct_only)]
Expand Down
2 changes: 1 addition & 1 deletion src/window/history_view.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ mod imp {

#[derive(Default, glib::Properties, gtk::CompositeTemplate)]
#[properties(wrapper_type = super::HistoryView)]
#[template(resource = "/io/github/seadve/Mousai/ui/history-view.ui")]
#[template(resource = "/io/github/seadve/Mousai/ui/history_view.ui")]
pub struct HistoryView {
/// Whether selection mode is active
#[property(get)]
Expand Down
2 changes: 1 addition & 1 deletion src/window/information_row.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ mod imp {

#[derive(Default, glib::Properties, gtk::CompositeTemplate)]
#[properties(wrapper_type = super::InformationRow)]
#[template(resource = "/io/github/seadve/Mousai/ui/information-row.ui")]
#[template(resource = "/io/github/seadve/Mousai/ui/information_row.ui")]
pub struct InformationRow {
/// Value of the information
///
Expand Down
2 changes: 1 addition & 1 deletion src/window/lyrics_page.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ mod imp {

#[derive(Default, glib::Properties, gtk::CompositeTemplate)]
#[properties(wrapper_type = super::LyricsPage)]
#[template(resource = "/io/github/seadve/Mousai/ui/lyrics-page.ui")]
#[template(resource = "/io/github/seadve/Mousai/ui/lyrics_page.ui")]
pub struct LyricsPage {
#[property(get, set = Self::set_song, explicit_notify, nullable)]
pub(super) song: RefCell<Option<Song>>,
Expand Down
2 changes: 1 addition & 1 deletion src/window/playback_button.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ mod imp {

#[derive(Default, glib::Properties, gtk::CompositeTemplate)]
#[properties(wrapper_type = super::PlaybackButton)]
#[template(resource = "/io/github/seadve/Mousai/ui/playback-button.ui")]
#[template(resource = "/io/github/seadve/Mousai/ui/playback_button.ui")]
pub struct PlaybackButton {
/// State or mode
#[property(get, set = Self::set_mode, explicit_notify, builder(PlaybackButtonMode::default()))]
Expand Down
2 changes: 1 addition & 1 deletion src/window/recognized_page.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ mod imp {

#[derive(Default, glib::Properties, gtk::CompositeTemplate)]
#[properties(wrapper_type = super::RecognizedPage)]
#[template(resource = "/io/github/seadve/Mousai/ui/recognized-page.ui")]
#[template(resource = "/io/github/seadve/Mousai/ui/recognized_page.ui")]
pub struct RecognizedPage {
#[property(get, set = Self::set_adaptive_mode, explicit_notify, builder(AdaptiveMode::default()))]
pub(super) adaptive_mode: Cell<AdaptiveMode>,
Expand Down
2 changes: 1 addition & 1 deletion src/window/recognized_page_tile.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ mod imp {

#[derive(Default, glib::Properties, gtk::CompositeTemplate)]
#[properties(wrapper_type = super::RecognizedPageTile)]
#[template(resource = "/io/github/seadve/Mousai/ui/recognized-page-tile.ui")]
#[template(resource = "/io/github/seadve/Mousai/ui/recognized_page_tile.ui")]
pub struct RecognizedPageTile {
#[property(get = Self::song, set = Self::set_song, construct_only)]
pub(super) song: PhantomData<Song>,
Expand Down
2 changes: 1 addition & 1 deletion src/window/recognizer_status.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ mod imp {
use super::*;

#[derive(Default, gtk::CompositeTemplate)]
#[template(resource = "/io/github/seadve/Mousai/ui/recognizer-status.ui")]
#[template(resource = "/io/github/seadve/Mousai/ui/recognizer_status.ui")]
pub struct RecognizerStatus {
#[template_child]
pub(super) progress_icon_revealer: TemplateChild<gtk::Revealer>,
Expand Down
2 changes: 1 addition & 1 deletion src/window/recognizer_view.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ mod imp {
use super::*;

#[derive(Default, gtk::CompositeTemplate)]
#[template(resource = "/io/github/seadve/Mousai/ui/recognizer-view.ui")]
#[template(resource = "/io/github/seadve/Mousai/ui/recognizer_view.ui")]
pub struct RecognizerView {
#[template_child]
pub(super) toolbar_view: TemplateChild<adw::ToolbarView>, // Unused
Expand Down
2 changes: 1 addition & 1 deletion src/window/song_bar.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ mod imp {
use super::*;

#[derive(Default, gtk::CompositeTemplate)]
#[template(resource = "/io/github/seadve/Mousai/ui/song-bar.ui")]
#[template(resource = "/io/github/seadve/Mousai/ui/song_bar.ui")]
pub struct SongBar {
#[template_child]
pub(super) center_box: TemplateChild<gtk::CenterBox>, // Unused
Expand Down
2 changes: 1 addition & 1 deletion src/window/song_page.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ mod imp {

#[derive(Default, glib::Properties, gtk::CompositeTemplate)]
#[properties(wrapper_type = super::SongPage)]
#[template(resource = "/io/github/seadve/Mousai/ui/song-page.ui")]
#[template(resource = "/io/github/seadve/Mousai/ui/song_page.ui")]
pub struct SongPage {
#[property(get, set = Self::set_song, explicit_notify)]
pub(super) song: RefCell<Option<Song>>,
Expand Down
2 changes: 1 addition & 1 deletion src/window/song_tile.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ mod imp {

#[derive(Default, glib::Properties, gtk::CompositeTemplate)]
#[properties(wrapper_type = super::SongTile)]
#[template(resource = "/io/github/seadve/Mousai/ui/song-tile.ui")]
#[template(resource = "/io/github/seadve/Mousai/ui/song_tile.ui")]
pub struct SongTile {
/// Song represented by Self
#[property(get, set = Self::set_song, explicit_notify)]
Expand Down

0 comments on commit dd6e757

Please sign in to comment.