当前位置:网站首页>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
边栏推荐
- 为什么要使用 Rust 语言?
- 面试官:Redis中字符串的内部实现方式是什么?
- 开通股票炒股账号安全吗?是靠谱的吗?
- Explanation and usage of sqrt() function
- Usage example of qjsonobject
- Visual studio 2022 17.1 is now available!
- Proficient in data analysis, double the income? What is the strongest competitiveness
- Is the VIP securities account of qiniu school really safe and regular? How do I say this?
- 软件测试的三个沟通技巧
- Why use the rust language?
猜你喜欢

Hardware development notes (VII): basic process of hardware development, making a USB to RS232 module (VI): creating 0603 package and associating principle graphic devices

PHP uses stack to solve maze problem

Interface test process

Interface use case design

CORBA Architecture Guide (Common Object Request Broker Architecture)

Webrtc audio and video development - experience

rosdep update 使用小鱼fishros解决ros1/ros2问题 2022

17 `bs object Node name h3 Parent ` parents get parent node ancestor node

Lumiprobe proteorange protein gel dye instructions

视觉弱监督学习研究进展
随机推荐
Is the VIP securities account of qiniu school really safe and regular? How do I say this?
Webrtc audio and video development - experience
Appium automated test Jiugongge unlock
Live broadcast preview | can SQL also play industrial machine learning? Mlops meetup V3 takes you to the bottom!
[linq]c list type grouping sum
Safety innovation practice | Haitai Fangyuan was invited to participate in the technical exchange Seminar on "network information innovation and value co creation in the digital age"
QT how the coordinates of one control are relatively fixed and displayed on another control (coordinate system)
Definition and precautions of genuine St link/v2 j-link jtag/swd pin
Anti rabbit dylight 488 abbkine universal immunofluorescence (if) toolbox
开通股票炒股账号安全吗?是靠谱的吗?
Architecture design of e-commerce secsha system
【HackTheBox】dancing(SMB)
6年心得,从功能测试到测试开发,送给在测试路上一路走到黑的你
Sword finger offer:[day 1 stack and queue (simple)] --- > stack containing min function
10、标准I/O输入输出重定向及管道
Construction and application of urban brain knowledge map
Lua source code analysis: 1 Lua variable type mutability is implemented in C code.
be careful! The PMP emergency postponement exam is due today!
IDC:阿里云获2021中国数据治理平台市场份额第一
犹豫的根音