Skip to content

Commit a145854

Browse files
committed
0.2.0 updates
Volume Adjustment on TVs
1 parent 1173aef commit a145854

3 files changed

Lines changed: 59 additions & 24 deletions

File tree

data/io.github.jhaygood86.big-purple-remote.appdata.xml.in

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,14 @@
1414
</p>
1515
</description>
1616
<releases>
17+
<release version="0.2.0" date="2021-11-26" urgency="medium">
18+
<description>
19+
<p>New Features</p>
20+
<ul>
21+
<li>Support for adjusting volume on TVs</li>
22+
</ul>
23+
</description>
24+
</release>
1725
<release version="0.1.1" date="2021-10-25" urgency="medium">
1826
<description>
1927
<p>Improvements</p>

po/io.github.jhaygood86.big-purple-remote.pot

Lines changed: 34 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ msgid ""
88
msgstr ""
99
"Project-Id-Version: io.github.jhaygood86.big-purple-remote\n"
1010
"Report-Msgid-Bugs-To: \n"
11-
"POT-Creation-Date: 2021-10-25 10:09-0400\n"
11+
"POT-Creation-Date: 2021-11-26 23:53-0500\n"
1212
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
1313
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
1414
"Language-Team: LANGUAGE <LL@li.org>\n"
@@ -23,39 +23,51 @@ msgstr ""
2323
msgid "Big Purple Remote"
2424
msgstr ""
2525

26-
#: src/Widgets/RemoteGrid.vala:62
26+
#: src/Widgets/RemoteGrid.vala:63
2727
msgid "Power"
2828
msgstr ""
2929

30-
#: src/Widgets/RemoteGrid.vala:64
30+
#: src/Widgets/RemoteGrid.vala:65
31+
msgid "Lower Volume"
32+
msgstr ""
33+
34+
#: src/Widgets/RemoteGrid.vala:66
35+
msgid "Mute"
36+
msgstr ""
37+
38+
#: src/Widgets/RemoteGrid.vala:67
39+
msgid "Raise Volume"
40+
msgstr ""
41+
42+
#: src/Widgets/RemoteGrid.vala:69
3143
msgid "Back"
3244
msgstr ""
3345

34-
#: src/Widgets/RemoteGrid.vala:65
46+
#: src/Widgets/RemoteGrid.vala:70
3547
msgid "Settings"
3648
msgstr ""
3749

38-
#: src/Widgets/RemoteGrid.vala:66
50+
#: src/Widgets/RemoteGrid.vala:71
3951
msgid "Home"
4052
msgstr ""
4153

42-
#: src/Widgets/RemoteGrid.vala:76
54+
#: src/Widgets/RemoteGrid.vala:81
4355
msgid "OK"
4456
msgstr ""
4557

46-
#: src/Widgets/RemoteGrid.vala:83
58+
#: src/Widgets/RemoteGrid.vala:88
4759
msgid "Rewind"
4860
msgstr ""
4961

50-
#: src/Widgets/RemoteGrid.vala:84
62+
#: src/Widgets/RemoteGrid.vala:89
5163
msgid "Pause"
5264
msgstr ""
5365

54-
#: src/Widgets/RemoteGrid.vala:85
66+
#: src/Widgets/RemoteGrid.vala:90
5567
msgid "Play"
5668
msgstr ""
5769

58-
#: src/Widgets/RemoteGrid.vala:86
70+
#: src/Widgets/RemoteGrid.vala:91
5971
msgid "Fast Forward"
6072
msgstr ""
6173

@@ -94,25 +106,33 @@ msgid ""
94106
msgstr ""
95107

96108
#: data/io.github.jhaygood86.big-purple-remote.appdata.xml.in:19
97-
msgid "Improvements"
109+
msgid "New Features"
98110
msgstr ""
99111

100112
#: data/io.github.jhaygood86.big-purple-remote.appdata.xml.in:21
113+
msgid "Support for adjusting volume on TVs"
114+
msgstr ""
115+
116+
#: data/io.github.jhaygood86.big-purple-remote.appdata.xml.in:27
117+
msgid "Improvements"
118+
msgstr ""
119+
120+
#: data/io.github.jhaygood86.big-purple-remote.appdata.xml.in:29
101121
msgid "Device discovery now longer freezes the UI"
102122
msgstr ""
103123

104-
#: data/io.github.jhaygood86.big-purple-remote.appdata.xml.in:22
124+
#: data/io.github.jhaygood86.big-purple-remote.appdata.xml.in:30
105125
msgid ""
106126
"Devices will now only be added once we get a signal lock. No more blank "
107127
"phantom entries!"
108128
msgstr ""
109129

110-
#: data/io.github.jhaygood86.big-purple-remote.appdata.xml.in:23
130+
#: data/io.github.jhaygood86.big-purple-remote.appdata.xml.in:31
111131
msgid ""
112132
"Devices will now only show up once in the device dropdown. No more duplicate "
113133
"entries!"
114134
msgstr ""
115135

116-
#: data/io.github.jhaygood86.big-purple-remote.appdata.xml.in:65
136+
#: data/io.github.jhaygood86.big-purple-remote.appdata.xml.in:73
117137
msgid "Justin Haygood"
118138
msgstr ""

src/Widgets/RemoteGrid.vala

Lines changed: 17 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -59,11 +59,16 @@ public class RemoteGrid : Gtk.Grid {
5959
}
6060

6161
private void create_and_attach_buttons () {
62+
6263
create_and_attach_button(_("Power"), "system-shutdown-symbolic", "PowerToggle", 3, 1, 1);
6364

64-
create_and_attach_button(_("Back"), "edit-undo-symbolic", "Back", 4, 0, 1);
65-
create_and_attach_button(_("Settings"), "open-menu-symbolic", "Info", 4, 1, 1);
66-
create_and_attach_button(_("Home"), "user-home-symbolic", "Home", 4, 2, 1);
65+
create_and_attach_button(_("Lower Volume"), "audio-volume-low-symbolic", "VolumeDown", 4, 0, 1);
66+
create_and_attach_button(_("Mute"), "audio-volume-muted-symbolic", "VolumeMute", 4, 1, 1);
67+
create_and_attach_button(_("Raise Volume"), "audio-volume-high-symbolic", "VolumeUp", 4, 2, 1);
68+
69+
create_and_attach_button(_("Back"), "edit-undo-symbolic", "Back", 5, 0, 1);
70+
create_and_attach_button(_("Settings"), "open-menu-symbolic", "Info", 5, 1, 1);
71+
create_and_attach_button(_("Home"), "user-home-symbolic", "Home", 5, 2, 1);
6772

6873
var dpad_grid = new Gtk.Grid () {
6974
hexpand = false,
@@ -78,12 +83,12 @@ public class RemoteGrid : Gtk.Grid {
7883

7984
var down_btn = create_and_attach_button(null, "go-down-symbolic", "Down", 2, 1, 1, dpad_grid);
8085

81-
attach (dpad_grid, 0, 5, 3);
86+
attach (dpad_grid, 0, 6, 3);
8287

83-
create_and_attach_button(_("Rewind"), "media-seek-backward-symbolic", "Rev", 6, 0, 1);
84-
create_and_attach_button(_("Pause"), "media-playback-pause-symbolic", "Pause", 6, 1, 1);
85-
create_and_attach_button(_("Play"), "media-playback-start-symbolic", "Play", 6, 1, 1).visible = false;
86-
create_and_attach_button(_("Fast Forward"), "media-seek-forward-symbolic", "Fwd", 6, 2, 1);
88+
create_and_attach_button(_("Rewind"), "media-seek-backward-symbolic", "Rev", 7, 0, 1);
89+
create_and_attach_button(_("Pause"), "media-playback-pause-symbolic", "Pause", 7, 1, 1);
90+
create_and_attach_button(_("Play"), "media-playback-start-symbolic", "Play", 7, 1, 1).visible = false;
91+
create_and_attach_button(_("Fast Forward"), "media-seek-forward-symbolic", "Fwd", 7, 2, 1);
8792

8893
set_dpad_style (up_btn);
8994
set_dpad_style (left_btn);
@@ -151,8 +156,10 @@ public class RemoteGrid : Gtk.Grid {
151156

152157
var roku_device = roku_manager.set_active_device(device_list.active_id);
153158

154-
var power_button = button_map["PowerToggle"];
155-
power_button.visible = roku_device.is_television;
159+
button_map["PowerToggle"].visible = roku_device.is_television;
160+
button_map["VolumeDown"].visible = roku_device.is_television;
161+
button_map["VolumeMute"].visible = roku_device.is_television;
162+
button_map["VolumeUp"].visible = roku_device.is_television;
156163

157164
set_channel_name (roku_device);
158165
set_channel_icon (roku_device);

0 commit comments

Comments
 (0)