@figma60sec · Post #10768 · 27.03.2026 г., 11:05
Medusa UI — дизайн-система и набор компонентов для Figma. Figma Community • #system
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
Пребарај: #system
@figma60sec · Post #10768 · 27.03.2026 г., 11:05
Medusa UI — дизайн-система и набор компонентов для Figma. Figma Community • #system
Hashtags
@figma60sec · Post #10470 · 03.03.2026 г., 11:03
Custom Frame Presets — плагин с собственными размерами для фреймов. 🔗Figma Community ▫️#system
Hashtags
@figma60sec · Post #9573 · 18.12.2025 г., 11:04
Custom Frame Presets — плагин с собственными размерами для фреймов. 🔗Figma Community ▫️#system
Hashtags
@dps_build · Post #3 · 01.03.2023 г., 08:25
System Design Interview 作者 Alex Xu 的 newsletter https://blog.bytebytego.com/ #system
Hashtags
@ziyuanfxvip · Post #12951 · 20.09.2024 г., 10:32
📢 5个版本Windows 11 Version 22H2 官方VLSC正式版光盘系统 🏷️#System | Windows #Windows系统 👉🏻https://www.bccfxs.com/10799/
Hashtags
@interesting_planet_facts · Post #1371 · 12.04.2026 г., 12:11
🌎 Jupiter could fit all other planets inside it and still have space left over. This gas giant has a diameter of about 142,984 kilometers. Its Great Red Spot is a storm wider than Earth itself. ✨ #solar⚡#system⚡#astronomy⚡#planets 👉subscribe Interesting Planet 👉more Channels
Hashtags
@libreware · Post #1069 · 02.05.2022 г., 02:23
Anemo Local private storage for Android Anemo is a private local storage utility application for android. Instead of being a stand-alone file manager user interface, it hooks into various components of Android making it feel like a native part of the operative system. Moreover it provides ways for the user to export contents from other apps and save them as files. Features : - Create folders and organize files freely - All files in the private storage won't appear in the other apps - Access in the system Files application (the DocumentsProviderUI) - Lock access to the private storage >Quick tile >Auto lock after 15 minutes >Password for locking access to the files - Import content using the share Android functionality Download - https://github.com/2bllw8/anemo/releases https://github.com/2bllw8/anemo #New#system#utility @foss_Android
@eventplatform · Post #43 · 03.08.2017 г., 15:27
Не платите за интерактив! Просто откройте сайт votemagic.ru со своего смартфона #positive#voting#system#engineofemotions
@american_observer · Post #5291 · 05.03.2026 г., 17:02
#weapon#system#combat#search 📱American Оbserver - Stay up to date on all important events 🇺🇸
@venturevillagewall · Post #3344 · 18.12.2024 г., 12:06
Helpcare AI Secures $500K Funding Helpcare AI has successfully raised $500K in funding as of December 4, 2024. The company offers a complete operating system for HIPAA-compliant AI-driven automation in healthcare administration, enhancing efficiency in healthcare management. For more details, visit Helpcare AI. #HelpcareAI#Funding#Healthcare#AI#Automation#HIPAA#Technology#HealthcareManagement#Efficiency#Startup#Investment #2024 #Innovation#MedicalAI#Admin#System#Operations#Compliance#HealthTech