Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
eepm-play-gui
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Vladimir Vaskov
eepm-play-gui
Commits
6c288648
Commit
6c288648
authored
Oct 07, 2024
by
Roman Alifanov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
connect style.css
parent
e82a7899
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
1 deletion
+17
-1
eepm-play-gui.gresource.xml
src/eepm-play-gui.gresource.xml
+1
-0
main.py
src/main.py
+6
-1
style.css
src/style.css
+10
-0
No files found.
src/eepm-play-gui.gresource.xml
View file @
6c288648
<?xml version="1.0" encoding="UTF-8"?>
<gresources>
<gresource
prefix=
"/ru/eepm/PlayGUI"
>
<file>
style.css
</file>
<file
preprocess=
"xml-stripblanks"
>
window.ui
</file>
<file
preprocess=
"xml-stripblanks"
>
gtk/help-overlay.ui
</file>
</gresource>
...
...
src/main.py
View file @
6c288648
...
...
@@ -23,7 +23,7 @@ import gi
gi
.
require_version
(
'Gtk'
,
'4.0'
)
gi
.
require_version
(
'Adw'
,
'1'
)
from
gi.repository
import
Gtk
,
Gio
,
Adw
from
gi.repository
import
Gtk
,
G
dk
,
G
io
,
Adw
from
.window
import
EepmPlayGuiWindow
...
...
@@ -36,6 +36,11 @@ class EepmPlayGuiApplication(Adw.Application):
self
.
create_action
(
'quit'
,
lambda
*
_
:
self
.
quit
(),
[
'<primary>q'
])
self
.
create_action
(
'about'
,
self
.
on_about_action
)
provider
=
Gtk
.
CssProvider
()
provider
.
load_from_resource
(
"/ru/eepm/PlayGUI/style.css"
)
display
=
Gdk
.
Display
.
get_default
()
Gtk
.
StyleContext
.
add_provider_for_display
(
display
,
provider
,
Gtk
.
STYLE_PROVIDER_PRIORITY_APPLICATION
)
def
do_activate
(
self
):
"""Called when the application is activated.
...
...
src/style.css
0 → 100644
View file @
6c288648
.marked-for-install
{
background-color
:
alpha
(
var
(
--accent-green
),
0.6
);
color
:
var
(
--accent-fg-color
);
}
.marked-for-removal
{
background-color
:
alpha
(
var
(
--destructive-bg-color
),
0.6
);
color
:
var
(
--destructive-fg-color
);
}
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment