1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-22 07:42:37 +00:00
transmission/gtk/transmission-ui.css
Mike Gelfand f6e1bb2d70
GTK client accessibility improvements (#7119)
* Reformat GTK *.ui files

Remove useless comments since we're mostly editing those files by hand
now. Wrap multi-line text values in CDATA to avoid automated formatters
changing whitespace there in any way. Collapse empty elements.

* Switch from plain `GtkLabel`s to `GtkFrame`s for sections

Frames are reported as groupings by assistive technologies.

* Fix minor usability issues

* Make value labels labelled and selectable
2024-09-14 02:34:39 +01:00

97 lines
1.7 KiB
CSS

@define-color tr_transfer_down_color #5379a9;
@define-color tr_transfer_up_color #26a955;
@define-color tr_transfer_idle_color #636363;
@define-color tr_error_color #ff453a;
.tr-workarea.frame {
border-left-width: 0;
border-right-width: 0;
border-radius: 0;
}
.tr-message-log.frame {
border-left-width: 0;
border-right-width: 0;
border-bottom-width: 0;
border-radius: 0;
}
.tr-pad-small {
padding: 3px;
}
.tr-pad-normal {
padding: 6px;
}
.tr-pad-large {
padding: 12px;
}
.tr-button-box,
.tr-dialog-content {
margin: 6px;
}
.tr-small {
font-size: small;
}
.tr-workarea row {
margin: 0;
padding: 3px;
}
row .tr-list-item label {
margin: 0;
padding: 0;
}
row .tr-list-item.tr-compact progressbar trough {
min-width: 50px;
}
row .tr-list-item.tr-compact progressbar trough,
row .tr-list-item.tr-compact progressbar progress {
min-height: 3px;
}
row .tr-list-item.tr-compact .tr-status {
margin-left: 3px;
margin-right: 3px;
}
row .tr-list-item.tr-transfer-down progressbar progress {
background-image: none;
background-color: @tr_transfer_down_color;
border-color: @tr_transfer_down_color;
}
row .tr-list-item.tr-transfer-up progressbar progress {
background-image: none;
background-color: @tr_transfer_up_color;
border-color: @tr_transfer_up_color;
}
row .tr-list-item.tr-transfer-idle progressbar progress {
background-image: none;
background-color: @tr_transfer_idle_color;
border-color: @tr_transfer_idle_color;
}
row:not(:selected) .tr-list-item.tr-error label {
color: @tr_error_color;
}
frame,
frame border {
border-style: none;
}
frame > grid {
margin: 6px 0 0 18px;
}
frame + frame {
margin-top: 6px;
}