mirror of
https://github.com/SoongNoonien/mpdevil.git
synced 2023-08-10 21:12:44 +03:00
use "Narrow no-break space"
https://teams.pages.gitlab.gnome.org/Design/hig-www/guidelines/typography.html
This commit is contained in:
@ -500,7 +500,7 @@ class Format():
|
|||||||
except ValueError:
|
except ValueError:
|
||||||
freq=samplerate
|
freq=samplerate
|
||||||
channels=ngettext("{channels} channel", "{channels} channels", int_chan).format(channels=int_chan)
|
channels=ngettext("{channels} channel", "{channels} channels", int_chan).format(channels=int_chan)
|
||||||
return f"{freq} kHz • {bits} bit • {channels}"
|
return f"{freq} kHz • {bits} bit • {channels}"
|
||||||
|
|
||||||
def raw(self):
|
def raw(self):
|
||||||
return self._format
|
return self._format
|
||||||
@ -3431,11 +3431,11 @@ class AudioFormat(Gtk.Box):
|
|||||||
current_song=self._client.currentsong()
|
current_song=self._client.currentsong()
|
||||||
if current_song:
|
if current_song:
|
||||||
file_type=current_song["file"].split(".")[-1].split("/")[0].upper()
|
file_type=current_song["file"].split(".")[-1].split("/")[0].upper()
|
||||||
self._separator_label.set_text(" kb∕s • ")
|
self._separator_label.set_text(" kb∕s • ")
|
||||||
self._file_type_label.set_text(file_type)
|
self._file_type_label.set_text(file_type)
|
||||||
else:
|
else:
|
||||||
self._file_type_label.set_text("")
|
self._file_type_label.set_text("")
|
||||||
self._separator_label.set_text(" kb∕s")
|
self._separator_label.set_text(" kb∕s")
|
||||||
self._format_label.set_markup("<small> </small>")
|
self._format_label.set_markup("<small> </small>")
|
||||||
|
|
||||||
def _on_mini_player(self, obj, typestring):
|
def _on_mini_player(self, obj, typestring):
|
||||||
@ -3452,7 +3452,7 @@ class AudioFormat(Gtk.Box):
|
|||||||
def _on_disconnected(self, *args):
|
def _on_disconnected(self, *args):
|
||||||
self.set_sensitive(False)
|
self.set_sensitive(False)
|
||||||
self._brate_label.set_text("—")
|
self._brate_label.set_text("—")
|
||||||
self._separator_label.set_text(" kb/s")
|
self._separator_label.set_text(" kb/s")
|
||||||
self._file_type_label.set_text("")
|
self._file_type_label.set_text("")
|
||||||
self._format_label.set_markup("<small> </small>")
|
self._format_label.set_markup("<small> </small>")
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user