@ITmastersuz · Post #11664 · 28.09.2024 г., 04:56
S24 vs 15 Pro Max batareya sinovi 🔥 🔥 - Samsung S24 👍 - iPhone 15 Pro Max 👉Bizning barcha loyihalar | #testing
Hashtags
TGINSIGHT SIMILAR POSTS
Изворен канал @pythonotes · Post #62 · 4 апр.
Когда разрабатываете свой GUI с помощью PyQt для какого-либо софта бывает необходимо позаимствовать цвета из текущего стиля интерфейса. Например, чтобы правильно раскрасить свои виджеты, подогнав их по цвету. Ведь бывает, что ваш GUI используется в разных софтах. Причём некоторые со светлой темой а другие с тёмной. По умолчанию стили наследуются, но если вы задаёте какую-либо раскраску для части виджета через свой styleSheet, то требуется ссылаться на цвета текущего стиля. Как это сделать? Как получить нужный цвет из палитры имеющегося стиля? Это достаточно просто, нужно использовать класс QPalette и его роли. Например, мне нужно достать цвет текста из одного виджета и применить его в другом как цвет фона (не важно зачем именно так, просто захотелось😊). Получаем палитру виджета и сразу достаём нужный цвет, указав его роль. from PySide2.QtGui import QPalette color = main_window.palette().color(QPalette.Text) теперь можем использовать этот цвет в стилях my_widget.setStyleSheet(f'background-color: {color.name()};') Готово, мы динамически переопределили дефолтный стиль используя текущий стиль окна! На самом деле есть запись покороче, в одну строку и без лишних переменных. Не очень-то по правилам CSS, но Qt это понимает. my_widget.setStyleSheet('background-color: palette(Text);') Этот способ не подходит если вам нужно как-то модифицировать цвет перед применением в своих стилях. В этом случае потребуется первый способ. Зато он прекрасно сработает в файле .qss, то есть не придётся в коде прописывать раскраску отдельных элементов через ссылки на палитру, всё красиво сохранится в отдельном файле .qss! QListView#my_widget::item:selected { background: palette(Midlight); } Про имеющиеся роли можно почитать здесь🌍 #qt#tricks
Пребарај: #testing
@ITmastersuz · Post #11664 · 28.09.2024 г., 04:56
S24 vs 15 Pro Max batareya sinovi 🔥 🔥 - Samsung S24 👍 - iPhone 15 Pro Max 👉Bizning barcha loyihalar | #testing
Hashtags
@momogram_update · Post #1285 · 16.04.2026 г., 03:57
#testing v12.6.4 cb9a1daa95 r1128 Fixed: - Content in ChatEditTypeActivity not aligned Misc: - APK signature changed - nekox.messenger.broken is now momo.gram Note: In general, secret chats will be lost when you switch between apps starting from the last build. Momogram contains a secret chat backup/restore helper that can partially mitigate this problem. The contents of secret chats can be migrated to the new Momogram release (view-only; you still have to create a new secret chat for future messages). Note that this functionality isn’t guaranteed. Make sure you don’t uninstall the old build before confirming the content is properly restored on the other side. Steps to migrate: - Open Momo account settings with previous build - Tap on "Backup Secret Chats" - Enter a password - Share it to yourself (Saved Messages) - Install this build - Tap on the file you shared to yourself - Enter the password you specified earlier and press OK PS. While the exported backup is always encrypted, it's advised to delete the backup as soon as you done with the migration. PPS. To prevent issues, the backup file created is restricted to be used with the same upstream version, try to restore on a different version will be resulted in decrypt error
Hashtags
@momogram_update · Post #1275 · 10.04.2026 г., 13:04
#testing v12.6.4 899700cb58 r1127 Fixed: - A typo in Momo settings - Duplicated share button in custom tab UI for certain browsers - (unverified) Random ANR & crash fix
Hashtags
@momogram_update · Post #1264 · 07.04.2026 г., 13:08
#testing v12.6.4 6a8da4a514 r1126 Added: - Randomize attached file name (Note. names of files with existing cache won't be randomized) - Hide AI button in edit text field Fixed: - Details button not showing for some messages - Repeat scheduled message not hidden for non-premium users - New Telegram translate UI (TranslateAlert3)
Hashtags
@momogram_update · Post #1259 · 07.04.2026 г., 02:58
#testing v12.6.4 02a7c23ae6 r1126 First 12.6.4 test build
Hashtags
@momogram_update · Post #1254 · 06.04.2026 г., 15:17
#testing v12.6.3 013d69a41f r1125 First 12.6.3 test build Added: - Disable pull down to show search bar at chat list (thx Nagram) Misc: - Abandon outdated local Chinese translations (replaced with official beta language pack)
Hashtags
@momogram_update · Post #1244 · 03.04.2026 г., 15:02
#testing v12.5.1 b043950be7 r1124 Added: - Active session checker to check if there's active session of potentially malicious clients (Please consider share API ID from experimental settings if you get the warning message) Fixed: - Passkey login for Bitwarden (Thx Nagram) - Edit/Promote admin in groups
Hashtags
@momogram_update · Post #1231 · 25.03.2026 г., 14:42
#testing v12.5.1 f5caf040d5 r1122 Test fix for some(conditions unconfirmed) uploaded video being not playable on Telegram Android clients
Hashtags
@momogram_update · Post #1226 · 20.03.2026 г., 13:33
#testing v12.5.1 20d242db28 r1122 ffmpeg 7.1.3 + dav1d 1.5.3
Hashtags
@momogram_update · Post #1208 · 10.03.2026 г., 13:35
#testing v12.5.1 867e63e69e r1121 First 12.5.1 test build
Hashtags
@momogram_update · Post #1193 · 23.02.2026 г., 09:47
#testing v12.4.1 6ecd8a6547 r1120 Added: - Hide bottom navigation tabs (Special Thanks: tehcneko) Fixed: - Send button size/position in chat list when forwarding Misc: - Close search settings by taping on bottom tab - Move appearance settings to a separate page - Show proxy in chat list menu
Hashtags
@momogram_update · Post #1188 · 21.02.2026 г., 10:40
#testing v12.4.1 339a548ad2 r1119 Added: Switch account by long click on title Basically usable now, may still have some minor bugs, but most annoying glitches were fixed, thanks for everyone helped testing
Hashtags