@BNBCHAIN · Post #3972 · 13.11.2024 г., 08:41
Save on your rides during #DevCon2024! 🚕 Get your first ride free & 50% off after your free ride by using $USDT, $FDUSD or $USDC on BNB Chain by using the TADA mini app!
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
Пребарај: #devcon2024
@BNBCHAIN · Post #3972 · 13.11.2024 г., 08:41
Save on your rides during #DevCon2024! 🚕 Get your first ride free & 50% off after your free ride by using $USDT, $FDUSD or $USDC on BNB Chain by using the TADA mini app!
Hashtags
@DWFLabs · Post #965 · 18.11.2024 г., 10:27
DWF Ventures had a great time at #Devcon2024. Keep reading to get an overview on some key takeaways from their team 👇 Market sentiment is shifting positively as the results of the U.S. Election have resulted in increased confidence in the crypto market. Projects are in a good place to enjoy better price discovery after $BTC hit an all time high. Altcoins and memecoins are both vying for retail trading liquidity, and the rise of memecoins showcases a more community-driven crypto cycle coming. #Devcon2024 was a sign of increased crypto activity in Bangkok, and some main narratives were DeSci, AI agents, DeFi, and memes, with a new Ethereum proposal mentioned at the conference as well. To read the full recap, click here: https://x.com/DWFVentures/status/1858445960374084049 The team at DWF Ventures is looking to invest in innovative projects — if you are building, reach out to their team at dwf-labs.com/ventures🤝
Hashtags
@DWFLabs · Post #959 · 14.11.2024 г., 07:32
Excited to be one of the cohosts alongside Cypher Capital, 1inch, and Kava Chain at #Devcon2024🔥 Lingling Jiang, the Partner of DWF Labs, shared more on what's ahead for DWF Labs at this meet up 🙌 Thank you to everyone who came to the event. We look forward to seeing you at our next event ✨️
Hashtags
@DWFLabs · Post #958 · 13.11.2024 г., 02:52
Happening tomorrow at 1:15PM GMT+7 — Lingling Jiang, Partner of DWF Labs, will be sharing insights about what's coming up in DWF Labs' journey 🔥 Register for the event "Bridging Worlds: DeFi & VC Innovation Meetup" to listen to her speech: https://lu.ma/CypherCapital1inchDWFLabsKAVA We're excited to be hosting alongside Cypher Capital, 1inch, and Kava Chain during #Devcon2024. See you there!
Hashtags
@DWFLabs · Post #956 · 12.11.2024 г., 04:35
During Korea Blockchain Week in September, Lingling Jiang, Partner of DWF Labs, shared about our vision and what's coming in the future. This week, she'll be sharing more insights about our journey and initiatives during the event "Bridging Worlds: DeFi & VC Innovation Meetup" at #Devcon2024🔥 We are co-hosting the event alongside Cypher Capital, 1inch, and Kava Chain🤝 Register here: https://lu.ma/CypherCapital1inchDWFLabsKAVA
Hashtags
@DWFLabs · Post #955 · 12.11.2024 г., 01:15
GM Bangkok! 🇹🇭 Our team is excited for #Devcon2024, and we are looking forward to connecting with you this week. Make sure to say hello when you spot us — we're thrilled to meet you all 🔥
Hashtags
@uxlink_community · Post #33 · 11.11.2024 г., 09:19
We are on the same page @VitalikButerin for "account abstraction". "One Account, One Gas" on #UXLINK Social Growth Layer. #Devcon2024#Bangkok
Hashtags