Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GTK4 port #288

Draft
wants to merge 11 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ SwayNotificationCenter
./src/swaync
./src/swaync*
swaync-git*
subprojects
4 changes: 4 additions & 0 deletions data/icons/meson.build
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
app_resources += gnome.compile_resources('icon-resources',
'swaync_icons.gresource.xml',
c_name: 'sway_notification_center_icons'
)
4 changes: 4 additions & 0 deletions data/icons/notifications-close-symbolic.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 10 additions & 0 deletions data/icons/notifications-placeholder-symbolic.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions data/icons/swaync_icons.gresource.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<gresources>
<gresource prefix="/org/erikreider/swaync/icons/scalable/actions">
<file preprocess="xml-stripblanks">notifications-placeholder-symbolic.svg</file>
<file preprocess="xml-stripblanks">notifications-close-symbolic.svg</file>
</gresource>
</gresources>
2 changes: 2 additions & 0 deletions data/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ install_data('org.erikreider.swaync.gschema.xml',
install_dir: join_paths(get_option('datadir'), 'glib-2.0/schemas')
)

subdir('icons')

compile_schemas = find_program('glib-compile-schemas', required: false)
if compile_schemas.found()
test('Validate schema file', compile_schemas,
Expand Down
36 changes: 19 additions & 17 deletions man/swaync.5.scd
Original file line number Diff line number Diff line change
Expand Up @@ -304,24 +304,24 @@ config file to be able to detect config errors
widget-mpris-player ++
widget-mpris-title ++
widget-mpris-subtitle ++
widget-mpris-album-art ++
properties: ++
image-size: ++
type: integer ++
optional: true ++
default: 96 ++
description: The size of the album art. ++
image-radius: ++
type: integer ++
optional: true ++
default: 12 ++
description: The border radius of the album art. ++
description: A widget that displays multiple music players. ++
*menubar*++
type: object ++
css classes: ++
widget-menubar ++
.widget-menubar>box>.menu-button-bar ++
name of element given after menu or buttons with # ++
widget-menubar-container (with additional classes "start" and "end") ++
widget-menubar-child (direct child of the container) ++
widget-menubar-buttons (group of buttons, "buttons" widget) ++
widget-menubar-button (each individual button) ++
widget-menubar-menu (the animated menu for the "menu" widget) ++
Name of individual buttons, ex: "button#power" would be "power" ++
patternProperties: ++
menu#<name>: ++
type: object ++
Expand Down Expand Up @@ -391,7 +391,9 @@ config file to be able to detect config errors
description: A list of buttons to be displayed in the menu-button-bar ++
*buttons-grid*++
type: object ++
css class: widget-buttons (access buttons with >flowbox>flowboxchild>button) ++
css class: ++
widget-buttons ++
widget-buttons-grid-button ++
properties: ++
actions: ++
type: array ++
Expand Down Expand Up @@ -545,16 +547,16 @@ config file to be able to detect config errors
},
...
]
},
"buttons": {
"actions": [
{
"label": "wifi",
"command": "rofi-wifi-menu"
},
...
]
}
},
"buttons": {
"actions": [
{
"label": "wifi",
"command": "rofi-wifi-menu"
},
...
]
}
}
}
Expand Down
3 changes: 3 additions & 0 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ add_project_arguments(['--enable-gobject-tracing'], language: 'vala')
add_project_arguments(['--enable-checking'], language: 'vala')

i18n = import('i18n')
gnome = import('gnome')

app_resources = []

subdir('data')
subdir('src')
Expand Down
72 changes: 0 additions & 72 deletions src/blankWindow/blankWindow.vala

This file was deleted.

3 changes: 1 addition & 2 deletions src/config.json.in
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,7 @@
"text": "Label Text"
},
"mpris": {
"image-size": 96,
"image-radius": 12
"image-size": 96
}
}
}
5 changes: 0 additions & 5 deletions src/configSchema.json
Original file line number Diff line number Diff line change
Expand Up @@ -389,11 +389,6 @@
"type": "integer",
"description": "The size of the album art",
"default": 96
},
"image-radius": {
"type": "integer",
"description": "The border radius of the album art",
"default": 12
}
}
},
Expand Down
119 changes: 0 additions & 119 deletions src/controlCenter/controlCenter.ui

This file was deleted.

Loading