koto/desktop/config/ui_prefs.hpp

33 lines
820 B
C++
Raw Normal View History

2024-09-29 17:29:10 +03:00
#pragma once
#include <optional>
#include <string>
#include <string_view>
#include <vector>
#include "includes/toml.hpp"
2024-09-29 17:29:10 +03:00
class KotoUiPreferences {
public:
KotoUiPreferences(std::optional<toml::value> v);
~KotoUiPreferences();
bool getAlbumInfoShowDescription();
bool getAlbumInfoShowGenre();
bool getAlbumInfoShowNarrator();
bool getAlbumInfoShowYear();
float getLastUsedVolume();
2024-09-29 17:29:10 +03:00
void setAlbumInfoShowDescription(bool show);
void setAlbumInfoShowGenre(bool show);
void setAlbumInfoShowNarrator(bool show);
void setAlbumInfoShowYear(bool show);
void setLastUsedVolume(float volume);
2024-09-29 17:29:10 +03:00
private:
bool i_albumInfoShowDescription;
bool i_albumInfoShowGenre;
bool i_albumInfoShowNarrator;
bool i_albumInfoShowYear;
float i_lastUsedVolume;
2024-09-29 17:29:10 +03:00
};