当前位置:网站首页>Icon fill color and background color change together
Icon fill color and background color change together
2022-06-28 22:10:00 【super_.】
The icon fill color and background color change together
Tips : The following is the main body of this article , The following cases can be used for reference
One 、 demand
The menu contains Icon , When selected, the menu background and icon change color together
Two 、 Realization
1、 Add icons and menu names to the rectangle
Customizable icons and content 
2、 Realize... According to the situation
(1) Combination of binding
① Align the icon with the rectangle Combination of binding , And name the combination 
② Feed element binding “ single click – Choose ” event

Currently set to true , The rest is false

③ To assemble components Set mouse down and selection styles ( Custom style )

④ Name the icon component and Set mouse down and selection styles ( Consistent with the composite component style ), Interactive styles can be copied and pasted with one click

(2) Unbound combination
① Icons and rectangles Unbound combination , Name the component

② Feed element binding “ single click – Choose ” event
Currently set to true , The rest is false

③ Feed element Set mouse down and selection styles ( Custom style )
④ Name the icon component and Set mouse down and selection styles ( Consistent with the above component styles ), Interactive styles can be copied and pasted with one click 
3、 ... and 、 result
1、 Component binding combination : Unified change

2、 Component is not bound to combination , The effect is not realized

Four 、 summary
Match components to icons Bind combinations and set them to a consistent interaction style , The color change of the icon and the filling color of the menu element can be realized at the same time
边栏推荐
- MSCI 2022年市场分类评估
- Is it safe to open an account on great wisdom
- 犹豫的根音
- Sword finger offer:[day 1 stack and queue (simple)] --- > use two stacks to realize the queue
- Deploy grafana to realize graphical monitoring
- Native implementation Net 5.0+ custom log
- Construction and application of urban brain knowledge map
- Study on bifunctional crosslinker lumiprobe sulfoacyanine 7 dicarboxylic acid
- Explanation and usage of sqrt() function
- 2022年股票在手机上开户安全吗?找谁可以办理?
猜你喜欢

After reading the list of global patent and chip buyers, I understand that high innovation can lead to high profits

硬件开发笔记(七): 硬件开发基本流程,制作一个USB转RS232的模块(六):创建0603封装并关联原理图元器件

16 `bs对象.节点名div.属性contents` children descendants 获取子节点 子孙节点

What is an interface? What is interface testing?

Lumiprobe non fluorescent alkyne research - dbco NHS ester

QJsonObject的使用示例

河狸生存记:90后女博士与AI开发者们

Rosdep update using fishros to solve ros1/ros2 problems 2022

docker下载Mysql镜像创建数据库链接时候发生密码错误问题
![Sword finger offer:[day 2 linked list (simple)] --- > reverse linked list](/img/05/0d7ed95f83c2188d274dde84817dc3.jpg)
Sword finger offer:[day 2 linked list (simple)] --- > reverse linked list
随机推荐
GO语言-反射reflect
Activate function
#yyds干货盘点# 解决剑指offer: 连续子数组的最大和(二)
6月底了,让我康康有多少准备跳槽的
加刚干的前提
CVPR 2022 𞓜 a creative and aesthetic text generation method! Support any input
ADB regular use of work notes
Survival of beaver: post-90s female doctors and AI developers
Go cryptobin common encryption and decryption Libraries
Native implementation Net 5.0+ custom log
Construction and application of urban brain knowledge map
Interface use case design
[linq] execute SQL like in statements using EF to LINQ
How to analyze the relationship between enterprise digital transformation and data asset management?
开通股票炒股账号安全吗?是靠谱的吗?
How to make up the PMP Exam? How much is the make-up exam?
華為雲的AI深潜之旅
Progress in visual weakly supervised learning
flutter通过 GlobalKey 获取界面任意元素坐标尺寸
SQLSERVER sys. Escape of parameter placeholders in messages