Browse Source

client: Make SVG icons PNGs

Maarten van den Berg 2 months ago
parent
commit
9979998c62

+ 6 - 6
piket_client/gui.py

218
 
218
 
219
         # Left
219
         # Left
220
         self.toolbar.addAction(
220
         self.toolbar.addAction(
221
-            self.load_icon("add_person.svg"), "+ Naam", self.add_person
221
+            self.load_icon("add_person.png"), "+ Naam", self.add_person
222
         )
222
         )
223
         self.undo_action = self.toolbar.addAction(
223
         self.undo_action = self.toolbar.addAction(
224
-            self.load_icon("undo.svg"), "Oeps", self.do_undo
224
+            self.load_icon("undo.png"), "Oeps", self.do_undo
225
         )
225
         )
226
         self.undo_action.setDisabled(True)
226
         self.undo_action.setDisabled(True)
227
 
227
 
228
         self.toolbar.addAction(
228
         self.toolbar.addAction(
229
-            self.load_icon("quit.svg"), "Afsluiten", self.confirm_quit
229
+            self.load_icon("quit.png"), "Afsluiten", self.confirm_quit
230
         )
230
         )
231
 
231
 
232
         self.toolbar.addWidget(self.create_spacer())
232
         self.toolbar.addWidget(self.create_spacer())
233
 
233
 
234
         # Right
234
         # Right
235
         self.toolbar.addAction(
235
         self.toolbar.addAction(
236
-            self.load_icon("add_consumption_type.svg"),
236
+            self.load_icon("add_consumption_type.png"),
237
             "Nieuw",
237
             "Nieuw",
238
             self.add_consumption_type,
238
             self.add_consumption_type,
239
         )
239
         )
278
 
278
 
279
         for ct in cts:
279
         for ct in cts:
280
             action = QAction(
280
             action = QAction(
281
-                self.load_icon(ct.icon or "beer_bottle.svg"), ct.name, self.ct_ag
281
+                self.load_icon(ct.icon or "beer_bottle.png"), ct.name, self.ct_ag
282
             )
282
             )
283
             action.setCheckable(True)
283
             action.setCheckable(True)
284
             action.setData(str(ct.consumption_type_id))
284
             action.setData(str(ct.consumption_type_id))
349
             ct = ct.create()
349
             ct = ct.create()
350
 
350
 
351
             action = QAction(
351
             action = QAction(
352
-                self.load_icon(ct.icon or "beer_bottle.svg"), ct.name, self.ct_ag
352
+                self.load_icon(ct.icon or "beer_bottle.png"), ct.name, self.ct_ag
353
             )
353
             )
354
             action.setCheckable(True)
354
             action.setCheckable(True)
355
             action.setData(str(ct.consumption_type_id))
355
             action.setData(str(ct.consumption_type_id))

BIN
piket_client/icons/add_consumption_type.png


BIN
piket_client/icons/add_person.png


BIN
piket_client/icons/beer_bottle.png


BIN
piket_client/icons/create_settlement.png


BIN
piket_client/icons/lightbulb.png


BIN
piket_client/icons/quit.png


BIN
piket_client/icons/undo.png


BIN
piket_client/icons/white_add_consumption_type.png


BIN
piket_client/icons/white_add_person.png


BIN
piket_client/icons/white_beer_bottle.png


BIN
piket_client/icons/white_lightbulb.png


BIN
piket_client/icons/white_quit.png


BIN
piket_client/icons/white_undo.png