Skip to content

Commit 34b1529

Browse files
committed
fix: Remove italic and font size from pronunciation
1 parent f93beb3 commit 34b1529

2 files changed

Lines changed: 2 additions & 7 deletions

File tree

data/resources/style.css

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,6 @@ listbox row.favorite-item:selected {
3636
font-weight: bold;
3737
}
3838

39-
.pronunciation-inline {
40-
font-style: italic;
41-
font-size: 0.95em;
42-
}
43-
4439
.relation-type,
4540
.definition-number,
4641
.synset-header {

wordbook/window.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -660,7 +660,7 @@ def _append_pronunciation_controls(
660660
label=pron.ipa,
661661
selectable=True,
662662
valign=Gtk.Align.CENTER,
663-
css_classes=["pronunciation-inline", "dim-label"],
663+
css_classes=["dimmed"],
664664
)
665665
box.append(ipa_label)
666666

@@ -692,7 +692,7 @@ def _create_header_row(
692692
lemma: str,
693693
) -> Gtk.Box:
694694
"""Creates a row: [header label] [IPA (dimmed)] [play btn] [info btn?]"""
695-
box = Gtk.Box(orientation=Gtk.Orientation.HORIZONTAL, spacing=8, valign=Gtk.Align.CENTER)
695+
box = Gtk.Box(orientation=Gtk.Orientation.HORIZONTAL, spacing=4, valign=Gtk.Align.CENTER)
696696

697697
header_label = Gtk.Label(
698698
label=label_text,

0 commit comments

Comments
 (0)