@Dwflabs · Post #16 · 22.08.2022 г., 04:37
The future is always bright for those who can paint it with the colours of ambition, confidence, and positivity; with the right partner to support such a vision. #dwflabs#venturecapital#marketmaking
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
Пребарај: #dwflabs
@Dwflabs · Post #16 · 22.08.2022 г., 04:37
The future is always bright for those who can paint it with the colours of ambition, confidence, and positivity; with the right partner to support such a vision. #dwflabs#venturecapital#marketmaking
@Dwflabs · Post #15 · 15.08.2022 г., 07:15
The market goes up. The market goes down. In times of uncertainty, seek the right partner. The one able to guide you through the most difficult decisions. #dwflabs#venturecapital#marketmaking
@DWFLabs · Post #800 · 02.09.2024 г., 08:43
Our Business Partner of Business Development Lingling Jiang is sharing on our work and support for the space 🙌🔥 If you're around, come say hi to the team! #KSL2024#KBW2024#DWFLabs
@DWFLabs · Post #725 · 26.06.2024 г., 13:57
Could you decipher where we are? 😁 Our Business Partner of Ecosystems, Alessia Baumgartner is taking the stage soon. If you're around and would like to hear more about what we look for in projects, come join us 🔥 #Decipher2024#Algorand#DWFLabs
Hashtags
@spotonchain · Post #867 · 20.06.2024 г., 10:11
$LISTA was just listed on several exchanges with a starting price of $0.565! Note that DWF Labs (@DWFLabs) appears to be an MM of @lista_dao. In the past 2 days prior to the listing, DWF Labs received 10M $LISTA from the project and has been transferring the tokens to CEX, including: • 2.5M $LISTA to #Bitget • 2M $LISTA to #Binance • 1.5M $LISTA to #MEXC • 850K $LISTA to #Gateio • 850K $LISTA to #KuCoin Follow @spotonchain and set alerts for the #DWFLabs entity via https://platform.spotonchain.ai/en/platform/entity/122?tokens=LISTA&min_amount=1
@Dwflabs · Post #46 · 13.10.2022 г., 11:31
The Crypto Oasis Ecosystem Report 2022 for the UAE is now LIVE and DWF Labs is a part of it. Download your copy here https://t.ly/orEH #CryptoOasis#EcosystemReport#dwflabs#marketmaking#crypto