Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Set the overall style of the tab bar including colors and border.
black
white
my.setTabBarStyle({ color: '#7A7E83', selectedColor: '#3CC51F', backgroundColor: '#FFFFFF', borderStyle: 'black' });
my.setTabBarStyle({ color: '#8E8E93', selectedColor: '#FFFFFF', backgroundColor: '#1C1C1E', borderStyle: 'black' });
my.setTabBarStyle({ color: '#666666', selectedColor: '#108ee9', backgroundColor: '#FFFFFF', borderStyle: 'white' });
Theme Switching
Page({ data: { isDarkMode: false }, toggleTheme() { const isDark = !this.data.isDarkMode; this.setData({ isDarkMode: isDark }); my.setTabBarStyle({ color: isDark ? '#8E8E93' : '#7A7E83', selectedColor: isDark ? '#FFFFFF' : '#108ee9', backgroundColor: isDark ? '#1C1C1E' : '#FFFFFF', borderStyle: isDark ? 'black' : 'white' }); } });
Seasonal Themes
function applyHolidayTheme() { my.setTabBarStyle({ color: '#666666', selectedColor: '#C41E3A', backgroundColor: '#FFF8F0', borderStyle: 'white' }); }