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

Added search box focus, increased width of 'health' column in GUI #6411

Merged
merged 2 commits into from
Oct 5, 2021
Merged
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
8 changes: 6 additions & 2 deletions src/tribler-gui/tribler_gui/qt_resources/mainwindow.ui
Original file line number Diff line number Diff line change
Expand Up @@ -3503,8 +3503,8 @@ QTabBar::tab:selected {
<rect>
<x>0</x>
<y>0</y>
<width>321</width>
<height>259</height>
<width>308</width>
<height>276</height>
</rect>
</property>
<layout class="QFormLayout" name="formLayout_4">
Expand Down Expand Up @@ -5420,6 +5420,10 @@ border: none;
padding-left: 5px;
border-radius: 14px;
color: black;
}

QLineEdit:focus {
border: 1px solid #FF924F;
}</string>
</property>
<property name="placeholderText">
Expand Down
2 changes: 1 addition & 1 deletion src/tribler-gui/tribler_gui/widgets/tablecontentmodel.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def define_columns():
Column.CATEGORY: d('category', "", width=30, tooltip_filter=lambda data: data),
Column.NAME: d('name', tr("Name"), width=EXPANDING),
Column.SIZE: d('size', tr("Size"), width=90, display_filter=lambda data: (format_size(float(data)) if data != "" else "")),
Column.HEALTH: d('health', tr("Health"), width=100, tooltip_filter=lambda data: f"{data}" + ('' if data == HEALTH_CHECKING else '\n(Click to recheck)'),),
Column.HEALTH: d('health', tr("Health"), width=120, tooltip_filter=lambda data: f"{data}" + ('' if data == HEALTH_CHECKING else '\n(Click to recheck)'),),
Column.UPDATED: d('updated', tr("Updated"), width=120, display_filter=lambda timestamp: pretty_date(timestamp) if timestamp and timestamp > BITTORRENT_BIRTHDAY else 'N/A',),
Column.VOTES: d('votes', tr("Popularity"), width=120, display_filter=format_votes, tooltip_filter=lambda data: get_votes_rating_description(data) if data is not None else None,),
Column.STATUS: d('status', "", sortable=False),
Expand Down