Remove all files related to unused topAction. Fixes #222

This commit is contained in:
Erik Reider 2023-02-22 12:38:57 +01:00
parent 450ad37c6e
commit 791cf29fc0
5 changed files with 0 additions and 64 deletions

View File

@ -1,32 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- Generated with glade 3.38.2 -->
<interface>
<requires lib="gtk+" version="3.24"/>
<template class="SwayNotificationCenterTopAction" parent="GtkBox">
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="margin-start">8</property>
<property name="margin-end">8</property>
<property name="margin-top">8</property>
<property name="margin-bottom">8</property>
<child>
<object class="GtkLabel" id="title">
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="label" translatable="yes">Do Not Disturb</property>
<property name="xalign">0</property>
<attributes>
<attribute name="size" value="14000"/>
</attributes>
<style>
<class name="top-action-title"/>
</style>
</object>
<packing>
<property name="expand">True</property>
<property name="fill">True</property>
<property name="position">0</property>
</packing>
</child>
</template>
</interface>

View File

@ -1,24 +0,0 @@
namespace SwayNotificationCenter {
[GtkTemplate (ui = "/org/erikreider/sway-notification-center/controlCenter/topAction/topAction.ui")]
class TopAction : Gtk.Box {
[GtkChild]
unowned Gtk.Label title;
public TopAction (string title_text,
Gtk.Widget action,
bool is_title = false) {
this.title.set_text (title_text);
var attr = new Pango.AttrList ();
if (is_title) attr.insert (new Pango.AttrSize (16000));
this.title.set_attributes (attr);
this.title.set_can_focus (false);
action.valign = Gtk.Align.CENTER;
action.set_can_focus (false);
this.pack_end (action, false);
this.show_all ();
}
}
}

View File

@ -56,7 +56,6 @@ app_sources = [
'notification/notification.vala',
'controlCenter/controlCenter.vala',
widget_sources,
'controlCenter/topAction/topAction.vala',
'blankWindow/blankWindow.vala',
'functions.vala',
constants,

View File

@ -153,12 +153,6 @@
text-shadow: none;
}
/* The "Notifications" and "Do Not Disturb" text widget */
.top-action-title {
color: white;
text-shadow: none;
}
.control-center {
background: @cc-bg;
}

View File

@ -4,7 +4,6 @@
<file>notificationWindow/notificationWindow.ui</file>
<file>notification/notification.ui</file>
<file>controlCenter/controlCenter.ui</file>
<file>controlCenter/topAction/topAction.ui</file>
<file>controlCenter/widgets/mpris/mpris_player.ui</file>
</gresource>
</gresources>