@valisherbotirov · Post #115 · 06.04.2023 г., 04:35
Frontend 1-dars. Bootstrap -Bootstrap haqida umumiy tushuncha Mentor: Rejabboyev Asadbek #frontend#bootstrap 👉Telegram | Instagram | YouTube
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
Пребарај: #bootstrap
@valisherbotirov · Post #115 · 06.04.2023 г., 04:35
Frontend 1-dars. Bootstrap -Bootstrap haqida umumiy tushuncha Mentor: Rejabboyev Asadbek #frontend#bootstrap 👉Telegram | Instagram | YouTube
Hashtags
@repo_science · Post #3592 · 15.09.2023 г., 12:16
#webDevelopment#bootstrap 🌐 Bootstrap 5 Crash Course Bootstrap is one of the most widely used CSS frameworks, but it can be quite complex to learn since there are so many features in Bootstrap. In this video I will be breaking down everything you need to know about Bootstrap by covering the entire grid system, 6 popular components, and 6 categories of utility classes. ----- Main channel: @repo_science Coupons: @freecoupons_reposcience -----
Hashtags
@repo_science · Post #3250 · 31.05.2023 г., 11:52
#python#flask#django#html#css#bootstrap 🐍 Python Web Dev Pro: Flask, Django, HTML, CSS & Bootstrap Elevate Your Web Development Skills: Master Back-End & Front-End Technologies with Python, Flask, Django, and Responsive 🔗Link ----- Main channel:@repo_science Coupons: @freecoupons_reposcience -----
@githubtrending · Post #14893 · 01.07.2025 г., 12:30
#css#admin#admin_dashboard#admin_panel#admin_template#bootstrap AdminLTE is a free, fully responsive admin dashboard template built on Bootstrap 5, designed to work smoothly on all devices from mobiles to desktops. It is easy to customize and includes many ready-to-use components, making it ideal for quickly creating professional admin panels. The latest version fixes deployment issues, ensures consistent behavior in development and production, and supports modern browsers without errors. You can start developing easily with simple commands and benefit from clear, well-commented code. This saves you time and effort in building and deploying admin interfaces efficiently and reliably. https://github.com/ColorlibHQ/AdminLTE
@githubtrending · Post #14762 · 30.05.2025 г., 00:00
#html#bootstrap#devcontainer#html5#jamstack#jekyll#jekyll_theme#pwa#responsive_web_design#rubygems The Chirpy Jekyll theme is a simple and powerful tool for creating websites, especially for technical writing. It offers many features like dark mode, categories, syntax highlighting, and built-in search. This theme helps users create visually appealing sites with ease, making it ideal for sharing knowledge and ideas. It also supports mathematical expressions and diagrams, which is beneficial for technical content. Additionally, it is optimized for SEO and performance, ensuring your site is easily found and runs smoothly. https://github.com/cotes2020/jekyll-theme-chirpy