Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
tuneit
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
Ximper Linux
tuneit
Commits
ba2a1ed1
Commit
ba2a1ed1
authored
Feb 27, 2026
by
Roman Alifanov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
widgets/info_graph_multi: use Adw.WrapBox for centered last row
parent
4ec846c6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
9 deletions
+12
-9
InfoGraphMultiWidget.py
src/settings/setting/widgets/InfoGraphMultiWidget.py
+12
-9
No files found.
src/settings/setting/widgets/InfoGraphMultiWidget.py
View file @
ba2a1ed1
from
gi.repository
import
Gtk
from
gi.repository
import
Adw
,
Gtk
from
.BaseWidget
import
BaseWidget
from
.BaseWidget
import
BaseWidget
...
@@ -14,22 +14,24 @@ class InfoGraphMultiWidget(BaseWidget):
...
@@ -14,22 +14,24 @@ class InfoGraphMultiWidget(BaseWidget):
self
.
columns
=
setting
.
map
.
get
(
'columns'
,
3
)
if
setting
.
map
else
3
self
.
columns
=
setting
.
map
.
get
(
'columns'
,
3
)
if
setting
.
map
else
3
def
create_row
(
self
):
def
create_row
(
self
):
self
.
flow_box
=
Gtk
.
FlowBox
(
self
.
wrap_box
=
Adw
.
WrapBox
(
homogeneous
=
True
,
line_homogeneous
=
True
,
selection_mode
=
Gtk
.
SelectionMode
.
NONE
,
natural_line_length
=
self
.
columns
*
160
,
justify
=
Adw
.
JustifyMode
.
NONE
,
align
=
0.5
,
margin_start
=
6
,
margin_start
=
6
,
margin_end
=
6
,
margin_end
=
6
,
margin_top
=
6
,
margin_top
=
6
,
margin_bottom
=
6
,
margin_bottom
=
6
,
row
_spacing
=
6
,
line
_spacing
=
6
,
c
olumn
_spacing
=
6
c
hild
_spacing
=
6
)
)
self
.
row
=
Gtk
.
ListBoxRow
(
self
.
row
=
Gtk
.
ListBoxRow
(
selectable
=
False
,
selectable
=
False
,
activatable
=
False
activatable
=
False
)
)
self
.
row
.
set_child
(
self
.
flow
_box
)
self
.
row
.
set_child
(
self
.
wrap
_box
)
return
self
.
row
return
self
.
row
...
@@ -46,7 +48,8 @@ class InfoGraphMultiWidget(BaseWidget):
...
@@ -46,7 +48,8 @@ class InfoGraphMultiWidget(BaseWidget):
orientation
=
Gtk
.
Orientation
.
VERTICAL
,
orientation
=
Gtk
.
Orientation
.
VERTICAL
,
spacing
=
0
,
spacing
=
0
,
css_classes
=
[
"card"
],
css_classes
=
[
"card"
],
width_request
=
150
width_request
=
150
,
hexpand
=
False
)
)
drawing_area
=
Gtk
.
DrawingArea
()
drawing_area
=
Gtk
.
DrawingArea
()
...
@@ -152,7 +155,7 @@ class InfoGraphMultiWidget(BaseWidget):
...
@@ -152,7 +155,7 @@ class InfoGraphMultiWidget(BaseWidget):
if
name
not
in
self
.
graphs
:
if
name
not
in
self
.
graphs
:
card
=
self
.
_create_graph_card
(
name
)
card
=
self
.
_create_graph_card
(
name
)
self
.
flow
_box
.
append
(
card
)
self
.
wrap
_box
.
append
(
card
)
graph
=
self
.
graphs
[
name
]
graph
=
self
.
graphs
[
name
]
graph
[
'history'
]
.
append
(
value
)
graph
[
'history'
]
.
append
(
value
)
...
...
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