mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-29 22:28:49 +03:00
cd9d1a2ec6
* Refactor widget items to use same interface * Support audio, video, generic file for pasting * Add utils function for human readable file sizes * Set correct MIME type for media messages This change also determines the size of the upload once from the ContentLengthHeader, rather than seeking the QIODevice and asking for its size. This prevents any future trouble in case the QIODevice is sequential (cannot be seeked). The MIME type is also determined at upload once, rather than using the QIODevice and the underlying data inside. * Allow for file urls to be used as fall-back This fixes an issue on macOS which uses `text/uri-list` for copying files to the clipboard. fixes #228
164 lines
2.7 KiB
Text
164 lines
2.7 KiB
Text
QLabel {
|
|
color: #caccd1;
|
|
}
|
|
|
|
#chatPage,
|
|
#chatPage > * {
|
|
background-color: #383c4a;
|
|
}
|
|
|
|
#sideBar {
|
|
border: none;
|
|
border-right: 1px solid #414A59;
|
|
}
|
|
|
|
TimelineView,
|
|
TimelineView > * {
|
|
background-color: #383c4a;
|
|
}
|
|
|
|
RoomList,
|
|
RoomList > * {
|
|
background-color: #383c4a;
|
|
}
|
|
|
|
CommunitiesList,
|
|
CommunitiesList > * {
|
|
background-color: #383c4a;
|
|
}
|
|
FlatButton {
|
|
qproperty-foregroundColor: #caccd1;
|
|
qproperty-backgroundColor: #333;
|
|
}
|
|
|
|
FileItem {
|
|
qproperty-textColor: #caccd1;
|
|
qproperty-backgroundColor: #414A59;
|
|
qproperty-iconColor: #caccd1;
|
|
}
|
|
|
|
AudioItem {
|
|
qproperty-textColor: #caccd1;
|
|
qproperty-backgroundColor: #414A59;
|
|
qproperty-iconColor: #caccd1;
|
|
}
|
|
|
|
RaisedButton {
|
|
qproperty-foregroundColor: #caccd1;
|
|
qproperty-backgroundColor: #333;
|
|
}
|
|
|
|
RoomInfoListItem {
|
|
qproperty-highlightedBackgroundColor: #5294e2;
|
|
qproperty-hoverBackgroundColor: #39679e;
|
|
qproperty-backgroundColor: #383c4a;
|
|
|
|
qproperty-titleColor: #e4e5e8;
|
|
qproperty-subtitleColor: #caccd1;
|
|
|
|
qproperty-highlightedTitleColor: #f4f4f5;
|
|
qproperty-highlightedSubtitleColor: #e4e5e8;
|
|
|
|
qproperty-btnColor: #414A59;
|
|
qproperty-btnTextColor: white;
|
|
}
|
|
|
|
CommunitiesListItem {
|
|
qproperty-highlightedBackgroundColor: #5294e2;
|
|
qproperty-hoverBackgroundColor: #39679e;
|
|
qproperty-backgroundColor: #383c4a;
|
|
}
|
|
|
|
LoadingIndicator {
|
|
qproperty-color: #caccd1;
|
|
}
|
|
|
|
UserInfoWidget, UserInfoWidget > * {
|
|
background-color: #383c4a;
|
|
color: #b0b3ba;
|
|
}
|
|
|
|
UserInfoWidget {
|
|
border: none;
|
|
border-bottom: 1px solid #414A59;
|
|
}
|
|
|
|
UserSettingsPage {
|
|
background-color: #383c4a;
|
|
}
|
|
|
|
Avatar {
|
|
qproperty-textColor: black;
|
|
qproperty-backgroundColor: #b0b3ba;
|
|
}
|
|
|
|
#displayNameLabel {
|
|
color: #f2f2f2;
|
|
}
|
|
|
|
#userIdLabel {
|
|
color: #f2f2f2;
|
|
}
|
|
|
|
dialogs--Logout,
|
|
dialogs--LeaveRoom,
|
|
dialogs--CreateRoom,
|
|
dialogs--InviteUsers,
|
|
dialogs--ReadReceipts,
|
|
dialogs--JoinRoom,
|
|
dialogs--PreviewUploadOverlay {
|
|
background-color: #383c4a;
|
|
color: #caccd1;
|
|
}
|
|
|
|
QListWidget,
|
|
WelcomePage,
|
|
LoginPage,
|
|
RegisterPage {
|
|
background-color: #383c4a;
|
|
color: #caccd1;
|
|
}
|
|
|
|
emoji--Panel,
|
|
emoji--Panel > * {
|
|
background-color: #313440;
|
|
color: #caccd1;
|
|
}
|
|
|
|
emoji--Category,
|
|
emoji--Category > * {
|
|
background-color: #383c4a;
|
|
color: #caccd1;
|
|
}
|
|
|
|
FloatingButton {
|
|
qproperty-backgroundColor: #efefef;
|
|
qproperty-foregroundColor: black;
|
|
}
|
|
|
|
TextField {
|
|
qproperty-backgroundColor: #383c4e;
|
|
qproperty-inkColor: #caccd1;
|
|
qproperty-labelColor: #caccd1;
|
|
}
|
|
|
|
QLineEdit,
|
|
QTextEdit {
|
|
background-color: #383c4a;
|
|
color: #caccd1;
|
|
}
|
|
|
|
ScrollBar {
|
|
qproperty-handleColor: #caccd1;
|
|
qproperty-backgroundColor: #383c4e;
|
|
}
|
|
|
|
SideBarActions {
|
|
border: none;
|
|
border-top: 1px solid #414A59;
|
|
}
|
|
|
|
TopRoomBar {
|
|
border: none;
|
|
border-bottom: 1px solid #414A59;
|
|
}
|