EventImage: respect uiScale
This commit is contained in:
parent
a555ad0e19
commit
97cf7b6dcd
|
@ -31,18 +31,25 @@ HMxcImage {
|
|||
theme.chat.message.thumbnailMinSize.height,
|
||||
|
||||
// Real size
|
||||
(
|
||||
loader.singleMediaInfo.thumbnail_width ||
|
||||
loader.singleMediaInfo.media_width ||
|
||||
implicitWidth ||
|
||||
800,
|
||||
800
|
||||
) * theme.uiScale,
|
||||
|
||||
(
|
||||
loader.singleMediaInfo.thumbnail_height ||
|
||||
loader.singleMediaInfo.media_height ||
|
||||
implicitHeight ||
|
||||
600,
|
||||
600
|
||||
) * theme.uiScale,
|
||||
|
||||
// Maximum display size
|
||||
Math.min(eventList.height * maxHeight, eventContent.messageBodyWidth),
|
||||
Math.min(
|
||||
eventList.height * maxHeight,
|
||||
eventContent.messageBodyWidth * Math.min(1, theme.uiScale),
|
||||
),
|
||||
eventList.height * maxHeight,
|
||||
)
|
||||
|
||||
|
|
|
@ -185,6 +185,7 @@ controls:
|
|||
int height: Math.max(2, spacing / 2)
|
||||
color background: colors.inputBackground
|
||||
color foreground: colors.accentBackground
|
||||
color pausedForeground: colors.middleBackground
|
||||
color errorForeground: colors.negativeBackground
|
||||
|
||||
circleProgressBar:
|
||||
|
@ -362,15 +363,15 @@ chat:
|
|||
'<style type"text/css">\n' + styleSheet + '\n</style>\n'
|
||||
|
||||
// Prefered minimum width of file messages
|
||||
int fileMinWidth: 256
|
||||
int fileMinWidth: 256 * uiScale
|
||||
|
||||
// Don't scale down thumbnails below this size in pixels, if
|
||||
// the becomes too small to show it at normal size.
|
||||
size thumbnailMinSize: Qt.size(192, 192)
|
||||
size thumbnailMinSize: Qt.size(192 * uiScale, 192 * uiScale)
|
||||
|
||||
// How much of the chat height thumbnails can take at most,
|
||||
// by default 0.3 for 30%.
|
||||
real thumbnailMaxHeightRatio: 0.3
|
||||
real thumbnailMaxHeightRatio: 0.3 * Math.min(1, uiScale)
|
||||
|
||||
daybreak:
|
||||
color background: colors.strongBackground
|
||||
|
|
Loading…
Reference in New Issue
Block a user