/usr/share/themes/ukui-theme/gtk-2.0/gtkrc is in ubuntukylin-theme 1.7.6.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 | #
# Copyright (C) 2016,Tianjin KYLIN Information Technology Co., Ltd.
#
# Authors:
# Zhang Chao zhangchao@ubuntukylin.com
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; version 3.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# NOTE: Fork from Menta
# These are the defined colors for the theme, you can change them in MATE's appearance preferences.
gtk_color_scheme = "bg_color:#f5f5f5\nselected_bg_color:#e4f0fc\nbase_color:#f5f7f8" # Background, base.
gtk_color_scheme = "fg_color:#000000\nselected_fg_color:#000000\ntext_color:#000000" # Foreground, text.
gtk_color_scheme = "tooltip_bg_color:#fafafa\ntooltip_fg_color:#000000" # Tooltips.TODO:PZ
gtk_color_scheme = "link_color:#08c" # Hyperlinks TODO:PZ
gtk_color_scheme = "bg_color_dark:#3f3f3f\ntext_color_dark:#FFF" # Dark colors TODO:PZ
gtk_color_scheme = "button_bg_color:#fafafa\nbutton_insensitive_bg_color:#f0f0f0\nbutton_insensitive_fg_color:#bbbbbb" # Dark colors TODO:PZ
gtk_color_scheme = "active_color:#d1e8ff\nprelight_color:#e4f0fc\nmurrine_focus_color:#569de5"
gtk_color_scheme = "murrine_border_colors:#cccccc"
gtk_color_scheme = "entry_bg_colors:#ffffff"
gtk_color_scheme = "entry_border_colors:#cccccc"
gtk_color_scheme = "murrine_notebook_active_colors:#ffffff"
gtk_color_scheme = "menu_bg_colors:#ececec"
gtk_color_scheme = "treeview_header_normal_colors:#ffffff"
gtk_color_scheme = "tooltip_border_colors:#777777"
gtk_color_scheme = "selected_colors_dark:#3094F1"
gtk_color_scheme = "scrollbar_color:#cdcdcd"
gtk_color_scheme = "scrollbar_prelight_color:#aaaaaa"
gtk_color_scheme = "scrollbar_active_color:#888888"
gtk_color_scheme = "scrollbar_icon_insensitive_color:#bbbbbb"
gtk_color_scheme = "scrollbar_icon_color:#606060"
gtk_color_scheme = "radiocheck_border_color:#d9d9d9"
gtk_color_scheme = "ukuimenu_color:#3b9dc5"
gtk_color_scheme = "ukuiside_color:#155670"
gtk_color_scheme = "slider_color:#f9f9f9"
gtk_color_scheme = "scale_color:#eff0f1"
gtk_color_scheme = "scale_border_color:#448fda"
### EXTERNAL FILES ###
# This includes the file that handles the panels with a light grey background.
#include "widgets/panel.rc"
# This includes the file that handles the panels with a dark grey background.
#include "widgets/panel-dark-grey.rc"
# This includes the file that handles the panels with a black background.
include "widgets/panel-black.rc"
### MISC ###
gtk-icon-sizes = "gtk-button=22,22" # This makes button icons smaller.
gtk-button-images = 0 # Enables icons in buttons
gtk-toolbar-style = 0 # Disables text in toolbar
gtk-auto-mnemonics = 1 # Disables ugly lines under menu items
####################
## Default Styles ##
####################
style "murrine-default" {
GnomeHRef ::link_color = @link_color
GtkHTML ::link-color = @link_color
GtkIMHtmlr ::hyperlink-color = @link_color
GtkIMHtml ::hyperlink-color = @link_color
GtkWidget ::link-color = @link_color
GtkWidget ::visited-link-color = @text_color
GtkButton ::child-displacement-x = 1
GtkButton ::child-displacement-y = 1
GtkButton ::default-border = { 0, 0, 0, 0 }
GtkButtonBox ::child-min-height = 26
GtkCheckButton ::indicator-size = 15
GtkWidget ::new-tooltip-style = 1
GtkWidget ::focus-line-width = 1
GtkWidget ::focus-padding = 0 # Keeping this at 0 prevents the Firefox tabs from jumping a few pixels when you create a new tab. Set the value locally if needed.
GtkImage ::x-ayatana-indicator-dynamic = 1
# GtkScrollbar ::has-backward-stepper = 0
# GtkScrollbar ::has-forward-stepper = 0
GtkScrollbar ::min-slider-length = 15
GtkScrollbar ::slider-width = 13
GtkScrollbar ::trough-border = 0
GtkScrollbar ::activate-slider = 1
GtkScrolledWindow ::scrollbar-spacing = 0
GtkScrolledWindow ::scrollbars-within-bevel = 1
GtkPaned ::handle-size = 6
GtkRange ::trough-border = 0
GtkRange ::slider-width = 11
# GtkRange ::stepper-size = 0
GtkRange ::stepper_spacing = 0
GtkRange ::trough-under-steppers = 0
#缩放条的滑块
GtkScale ::slider-length = 11
GtkScale ::slider-width = 21
GtkScale ::trough-side-details = 1
GtkMenuBar ::internal-padding = 0 #菜单栏内容和边框的间距
GtkExpander ::expander-size = 16
GtkToolbar ::internal-padding = 0
GtkTreeView ::expander-size = 6
GtkTreeView ::indent-expanders = 1
GtkTreeView ::vertical-separator = 1
GtkTreeView ::horizontal-separator = 20
GtkNotebook ::tab-overlap = 1 #tab标签页之间的间距类型:-1,0,1
GtkMenu ::horizontal-padding = 1
GtkMenu ::vertical-padding = 1
GtkMenuItem ::horizontal-padding = 0
WnckTasklist ::fade-overlay-rect = 0
# The following line hints to gecko (and possibly other appliations)
# that the entry should be drawn transparently on the canvas.
# Without this, gecko will fill in the background of the entry.
GtkEntry ::honors-transparent-bg-hint = 1
GtkEntry ::state-hint = 0
GtkEntry ::progress-border = { 2, 2, 2, 2 }
GtkProgressBar ::min-horizontal-bar-height = 16
GtkProgressBar ::min-vertical-bar-width = 16
#GtkToolbar ::shadow-type = GTK_SHADOW_NONE # Makes toolbars flat and unified.
#GtkMenuBar ::shadow-type = GTK_SHADOW_NONE # Makes menus flat and unified.
GtkMenuBar ::window-dragging = 1
GtkToolbar ::window-dragging = 1
# The little lovely gripper at the bottom right needs to stay.
GtkWindow ::resize-grip-height = 15
GtkWindow ::resize-grip-width = 15
xthickness = 1
ythickness = 1
### Color Definitions ###
fg[NORMAL] = @fg_color
fg[PRELIGHT] = @fg_color
fg[SELECTED] = @selected_fg_color
fg[ACTIVE] = @fg_color
fg[INSENSITIVE] = @button_insensitive_fg_color
bg[NORMAL] = @bg_color
bg[PRELIGHT] = shade (1.02, @bg_color)
bg[SELECTED] = @selected_bg_color
bg[INSENSITIVE] = @bg_color
bg[ACTIVE] = shade (1.04, @bg_color)
base[NORMAL] = @base_color
base[PRELIGHT] = shade (0.95, @bg_color)
base[ACTIVE] = shade (0.92, @selected_bg_color)
base[SELECTED] = shade (0.93, @selected_bg_color)
base[INSENSITIVE] = @bg_color
text[NORMAL] = @text_color
text[PRELIGHT] = @text_color
text[ACTIVE] = @selected_fg_color
text[SELECTED] = @selected_fg_color
text[INSENSITIVE] = @button_insensitive_fg_color
### Murrine Settings ###
engine "murrine" {
animation = TRUE
arrowstyle = 1 # 0 = normal arrows, 1 = filled arrows
border_shades = {0.9, 0.9} # gradient to draw on border
border_colors = { @murrine_border_colors, @murrine_border_colors }
colorize_scrollbar = FALSE
comboboxstyle = 0 # 0 = normal combobox, 1 = colorized combobox below arrow
contrast = 0.7 # 边框线条的对比度 0.8 for less contrast, more than 1.0 for more contrast on borders
default_button_color = @button_bg_color
focus_color = @murrine_focus_color #控件当前焦点状态的颜色
focusstyle = 3 # 0=无,1=虚线框,2=小底色框,3=大地色框
glazestyle = 1 # 0 = flat highlight, 1 = curved highlight, 2 = concave style, 3 = top curved highlight, 4 = beryl highlight
gradient_shades = {1.0,1.0,1.0,1.0} # Sets the gradients on the widgets.
glowstyle = 4 # 0,1,2,3,4
glow_shade = 1.0
highlight_shade = 1.0 # set highlight amount for buttons or widgets
lightborder_shade = 1.0 # sets lightborder amount for buttons or widgets
lightborderstyle = 1 # 0 = lightborder on top side, 1 = lightborder on all sides
listviewheaderstyle = 1 # 列表控件标题行样式 0 = flat, 1 = glassy, 2 = raised
listviewstyle = 0 # 0 = nothing, 1 = dotted
menubaritemstyle = 0 # 0 = menuitem look, 1 = button look
menubarstyle = 0 # 0 = flat, 1 = glassy, 2 = gradient, 3 = striped
menuitemstyle = 0 # 0 = flat, 1 = glassy, 2 = striped
menustyle = 0 # 0 = no vertical menu stripe, 1 = display vertical menu stripe
prelight_shade = 1.0 # shade level for scrollbar's slider, comboboxstyle(1), and prelight state with gradient_colors
reliefstyle = 0 # 0 = flat, 1 = inset, 2 = shadow, 3 = shadow with gradient, 4 = stronger shadow with gradient
rgba = TRUE # FALSE = disabled, TRUE = enabled
roundness = 0 # 0 = squared, 1 = old default, more will increase roundness
scrollbarstyle = 0 # 0 = nothing, 1 = circles, 2 = handles, 3 = diagonal stripes, 4 = diagonal stripes and handles, 5 = horizontal stripes, 6 = horizontal stripes and handles
separatorstyle = 1 # 0 = Hard seperators 1 = Smooth seperators
sliderstyle = 2 # 0 = nothing added, 1 = handles 滑块样式
stepperstyle = 1 # 0 = standard, 1 = integrated stepper handles, 2 = unknown
progressbarstyle = 1 # 0 = nothing, 1 = stripes, 2 = lines
shadow_shades = {0.0, 0.0} # gradient for shadows.
textstyle = 0 # 0 = normal text, 1 = inset
toolbarstyle = 0 # 0 = flat, 1 = glassy, 2 = gradient
trough_shades = {0.98, 1.06} # draw gradient on trough of GtkScrollbar and GtkProgressbar
expanderstyle = 0
}
}
### THEME MODULES ###
style "murrine-dark" {
base[NORMAL] = @bg_color_dark
base[PRELIGHT] = shade (0.95, @bg_color_dark)
base[INSENSITIVE] = @bg_color_dark
bg[NORMAL] = @bg_color_dark
bg[PRELIGHT] = shade (1.02, @bg_color_dark)
bg[SELECTED] = shade (0.90, @selected_bg_color)
bg[INSENSITIVE] = @bg_color_dark
bg[ACTIVE] = shade (1.04, @bg_color_dark)
fg[NORMAL] = @text_color_dark
fg[PRELIGHT] = @text_color_dark
fg[SELECTED] = @text_color_dark
fg[ACTIVE] = @text_color_dark
fg[INSENSITIVE] = @button_insensitive_fg_color
text[NORMAL] = @text_color_dark
text[PRELIGHT] = @text_color_dark
text[ACTIVE] = @text_color_dark
text[SELECTED] = @text_color_dark
text[INSENSITIVE] = darker (@bg_color_dark)
}
style "murrine-thin" = "murrine-default" { xthickness = 0 ythickness = 0 }
style "murrine-wide" = "murrine-default" { xthickness = 2 ythickness = 2 }
style "murrine-wider" = "murrine-default" { xthickness = 3 ythickness = 3 }
style "murrine-widest" = "murrine-default" { xthickness = 4 ythickness = 4 }
style "murrine-thin-dark" = "murrine-dark" { xthickness = 0 ythickness = 0 }
style "murrine-wide-dark" = "murrine-dark" { xthickness = 2 ythickness = 2 }
style "murrine-wider-dark" = "murrine-dark" { xthickness = 3 ythickness = 3 }
style "murrine-widest-dark" = "murrine-dark" { xthickness = 4 ythickness = 4 }
###################
## Widget Styles ##
###################
####
##输入框
####
style "murrine-entry" = "murrine-wider" {
bg[NORMAL] = @murrine_border_colors
base[NORMAL] = @entry_bg_colors
base[ACTIVE] = @selected_bg_color #选中无焦点时背景
base[SELECTED] = shade (0.95, @selected_bg_color) #选中有焦点时背景
base[INSENSITIVE] = @button_insensitive_bg_color
engine "murrine" {
border_colors = FALSE
}
}
####
##按钮样式
####
style "murrine-button" = "murrine-wider" {
bg[NORMAL] = @button_bg_color
bg[PRELIGHT] = @prelight_color
bg[ACTIVE] = @active_color #PZ
bg[SELECTED] = @selected_bg_color
bg[INSENSITIVE] = @button_insensitive_bg_color
engine "murrine" {
border_colors = FALSE
}
}
####
##tab标签页
####
style "murrine-notebook-bg" {
bg[NORMAL] = @murrine_notebook_active_colors
bg[ACTIVE] = @button_insensitive_bg_color
}
style "murrine-notebook" = "murrine-notebook-bg" {
xthickness = 2 # Width of tabs and notebook borders.
ythickness = 2 # Height of tabs and notebook borders.
engine "murrine" {
focus_color = @murrine_notebook_active_colors
}
}
style "notebook-close" { stock["gtk-close"] = {{ "widgets/Others/close.png", *, *, * }} } # Close icon on tabs
####
##菜单栏
####
style "murrine-menubar" = "murrine-default" {
ythickness = 0
bg[NORMAL] = @bg_color
fg[NORMAL] = @fg_color
fg[PRELIGHT] = @fg_color
fg[SELECTED] = @fg_color
engine "murrine" {
contrast = 0.0
border_colors = FALSE
}
}
####
##菜单栏中控件
####
style "murrine-menubar-menuitem" = "murrine-wider" {
xthickness = 10
#bg[PRELIGHT] = @active_color
bg[SELECTED] = @active_color
}
style "murrine-menu" {
xthickness = 4
ythickness = 4
bg[NORMAL] = @menu_bg_colors
}
style "murrine-menu-item" = "murrine-wider" {
xthickness = 4
ythickness = 3
bg[SELECTED] = @selected_bg_color
bg[PRELIGHT] = @selected_bg_color
fg[PRELIGHT] = @selected_fg_color
}
####
##菜单分割线控件
####
# This style is there to modify the separator menu items. The goals are:
# 1. Get a specific height.
# 2. The line should go to the edges (ie. no border at the left/right)
style "murrine_separator_menu_item" {
bg[NORMAL] = @base_color # Remove for visible separators.
xthickness = 4
ythickness = 0
GtkSeparatorMenuItem::horizontal-padding = 0
GtkWidget::wide-separators = 1
GtkWidget::separator-width = 1
GtkWidget::separator-height = 7
}
####
##树形视图控件
####
style "murrine-treeview" {
GtkTreeView::odd_row_color = @base_color
GtkTreeView::even_row_color = @base_color
}
####
##树形视图控件标题行
####
style "murrine-treeview-header" = "murrine-button" {
xthickness = 2
ythickness = 0
bg[NORMAL] = @treeview_header_normal_colors # Color for treeview headers.
bg[PRELIGHT] = @prelight_color # Color for treeview header prelight.
bg[ACTIVE] = @prelight_color # Color for pressed-treeview.
engine "murrine" {
focusstyle = 0
}
}
####
##label控件标题行
####
style "murrine-frame-title" { fg[NORMAL] = @fg_color }
####
##tooltip提示框
####
style "murrine-tooltips" {
bg[NORMAL] = @tooltip_bg_color
fg[NORMAL] = @tooltip_fg_color
engine "murrine" {
border_colors = { @tooltip_border_colors, @tooltip_border_colors }
}
}
####
##进度条控件
####
style "murrine-progressbar" = "murrine-thin" {
bg[NORMAL] = shade (1.06, @bg_color)
bg[ACTIVE] = shade (0.85, @bg_color)
bg[SELECTED] = @selected_colors_dark
bg[INSENSITIVE] = shade (0.95, @bg_color)
engine "murrine" {
gradient_shades = {0.95,0.95,1.1,1.1}
}
}
style "murrine-statusbar" {
xthickness = 2
}
style "murrine-comboboxentry" {
engine "murrine" {
contrast = 0.4
}
}
####
##微调按钮
####
style "murrine-spinbutton" {
bg[NORMAL] = @bg_color
bg[INSENSITIVE] = @bg_color
}
#缩放条
style "murrine-scale" = "murrine-thin" {
bg[NORMAL] = @slider_color
bg[PRELIGHT] = @active_color
bg[ACTIVE] = @scale_color
bg[SELECTED] = @selected_colors_dark
bg[INSENSITIVE] = @slider_color
engine "murrine" {
border_colors = { @scale_border_color, @scale_border_color }
focusstyle = 0
}
}
#没生效
style "pixmap-scale" {
engine "pixmap" {
image
{
function = BOX
detail = "trough"
file = "widgets/Scale/trough-horizontal.png"
border = { 2, 2, 0, 0 }
stretch = TRUE
orientation = HORIZONTAL
}
image
{
function = BOX
detail = "trough"
file = "widgets/Scale/trough-vertical.png"
border = { 0, 0, 2, 2 }
stretch = TRUE
orientation = VERTICAL
}
# Horizontal
image
{
function = SLIDER
state = NORMAL
file = "widgets/Others/null.png"
border = { 0, 0, 0, 0 }
stretch = FALSE
overlay_file = "widgets/Scale/slider.png"
overlay_stretch = FALSE
orientation = HORIZONTAL
}
image
{
function = SLIDER
state = PRELIGHT
file = "widgets/Others/null.png"
border = { 0, 0, 0, 0 }
stretch = FALSE
overlay_file = "widgets/Scale/slider-hover.png"
overlay_stretch = FALSE
orientation = HORIZONTAL
}
image
{
function = SLIDER
state = INSENSITIVE
file = "widgets/Others/null.png"
border = { 0, 0, 0, 0 }
stretch = FALSE
overlay_file = "widgets/Scale/slider-ins.png"
overlay_stretch = FALSE
orientation = HORIZONTAL
}
# Vertical
image
{
function = SLIDER
state = NORMAL
file = "widgets/Others/null.png"
border = { 0, 0, 0, 0 }
stretch = FALSE
overlay_file = "widgets/Scale/slider.png"
overlay_stretch = FALSE
orientation = VERTICAL
}
image
{
function = SLIDER
state = PRELIGHT
file = "widgets/Others/null.png"
border = { 0, 0, 0, 0 }
stretch = FALSE
overlay_file = "widgets/Scale/slider-hover.png"
overlay_stretch = FALSE
orientation = VERTICAL
}
image
{
function = SLIDER
state = INSENSITIVE
file = "widgets/Others/null.png"
border = { 0, 0, 0, 0 }
stretch = FALSE
overlay_file = "widgets/Scale/slider-ins.png"
overlay_stretch = FALSE
orientation = VERTICAL
}
# Function below removes ugly boxes
image
{
function = BOX
file = "widgets/Others/null.png"
border = { 3, 3, 3, 3 }
stretch = TRUE
}
}
}
####
##滚动条样式
####
style "murrine-scrollbar" {
bg[NORMAL] = @scrollbar_color
bg[ACTIVE] = @scrollbar_active_color
bg[PRELIGHT] = @scrollbar_prelight_color
fg[NORMAL] = @scrollbar_icon_color
fg[PRELIGHT] = @scrollbar_icon_color
fg[INSENSITIVE] = @scrollbar_icon_insensitive_color
engine "murrine" {
scrollbarstyle = 0
contrast = 0.0
border_colors = FALSE
}
}
####
#PZ ??
style "murrine-sidebar" {
xthickness = 0
ythickness = 0
base[NORMAL] = @base_color
bg[NORMAL] = @bg_color
text[NORMAL] = @text_color
font_name = "Regular"
GtkTreeView::odd_row_color = @bg_color
GtkTreeView::even_row_color = @bg_color
engine "murrine" { listviewstyle = 0 }
}
####
#开关按键 gtk2中未找到demo
#TODO:PZ
####
style "murrine-toggleswitch" = "murrine-wider" {
ythickness = 4
bg[ACTIVE] = shade (0.80, @bg_color)
bg[NORMAL] = shade (1.15, @bg_color)
bg[PRELIGHT] = shade (1.13, @selected_bg_color)
bg[SELECTED] = shade (0.75, @selected_bg_color)
bg[INSENSITIVE] = shade (0.98, @bg_color)
engine "murrine" {
contrast = 1.25
lightborderstyle = 1
}
}
####
##单选和复选按钮
####
style "murrine-radiocheck" = "murrine-wider" {
bg[NORMAL] = @button_insensitive_bg_color
bg[PRELIGHT] = @prelight_color
bg[SELECTED] = @active_color
engine "murrine" {
contrast = 1.0
focusstyle = 0
}
}
####
##??
####
style "murrine-radiocheck-menu" {
fg[PRELIGHT] = @selected_fg_color
text[PRELIGHT] = @selected_fg_color
}
####
##工具栏
####
style "murrine-toolbar" = "murrine-thin" {
bg[NORMAL] = @bg_color
engine "murrine" {
contrast = 0.0
border_colors = FALSE
}
}
####
##工具栏
####
style "pixmap-sidebar-handle-left" {
GtkPaned::handle-size = 1
engine "pixmap" {
image { function = HANDLE file = "/widgets/Others/handle.png" stretch = TRUE border = { 0, 0, 0, 0 } }
}
}
###############################################################################
# The following part of the gtkrc applies the different styles to the widgets.
###############################################################################
# Murrine default style is applied to every widget.
class "GtkWidget" style "murrine-default"
# Increase the x/ythickness in some widgets.
class "GtkFrame" style "murrine-wide"
class "GtkEntry" style "murrine-entry"
class "GtkSeparator" style "murrine-wide"
class "GtkCalendar" style "murrine-wide"
class "GtkInfoBar" style "murrine-default"
class "GtkIconView" style "murrine-default"
class "GtkToolbar" style "murrine-toolbar"
class "GtkSpinButton" style "murrine-spinbutton"
class "GtkScale" style "murrine-scale"
class "GtkVScale" style "murrine-scale"
class "GtkHScale" style "murrine-scale"
class "GtkScrollbar" style "murrine-scrollbar"
class "GtkVScrollbar" style "murrine-scrollbar"
class "GtkHScrollbar" style "murrine-scrollbar"
widget "*ToggleSwitch*" style "murrine-toggleswitch"
widget "*SidebarHandleLeft" style "pixmap-sidebar-handle-left"
widget "*SidebarContent" style "murrine-sidebar"
# General matching following, the order is choosen so that the right styles override each other eg. progressbar needs to be more important then the menu match.
# This is not perfect, it could be done better (That is modify *every* widget in the notebook, and change those back that we really don't want changed)
widget_class "*<GtkNotebook>*<GtkEventBox>" style "murrine-notebook-bg"
widget_class "*<GtkNotebook>*<GtkDrawingArea>" style "murrine-notebook-bg"
widget_class "*<GtkNotebook>*<GtkLayout>" style "murrine-notebook-bg"
widget_class "*<GtkNotebook>*<GtkViewport>" style "murrine-notebook-bg"
widget_class "*<GtkNotebook>*<GtkScrolledWindow>" style "murrine-notebook-bg"
widget_class "*<GtkNotebook>*<GtkLabel>" style "murrine-notebook-bg"
widget_class "*<GtkButton>" style "murrine-button"
widget_class "*<GtkNotebook>" style "murrine-notebook"
widget_class "*<GtkNotebook>*" style "notebook-close"
widget_class "*<GtkStatusbar>*" style "murrine-statusbar"
widget_class "*<GtkComboBoxEntry>*" style "murrine-comboboxentry"
widget_class "*<GtkCombo>*" style "murrine-comboboxentry"
widget_class "*<GtkMenuBar>*" style "murrine-menubar"
widget_class "*<GtkMenu>*" style "murrine-menu"
widget_class "*<GtkMenuItem>*" style "murrine-menu-item"
widget_class "*<GtkSeparatorMenuItem>*" style "murrine_separator_menu_item"
widget_class "*<GtkMenuBar>*<GtkMenuItem>*" style "murrine-menubar-menuitem"
widget_class "*.<GtkFrame>.<GtkLabel>" style "murrine-frame-title"
widget_class "*.<GtkTreeView>*" style "murrine-treeview"
widget_class "*.<GtkTreeViewColumn>*" style "murrine-treeview"
widget_class "*<GtkProgress>" style "murrine-progressbar"
widget_class "*<GtkProgressBar>" style "murrine-progressbar"
widget_class "*<GtkRadioButton>*" style "murrine-radiocheck"
widget_class "*<GtkCheckButton>*" style "murrine-radiocheck"
class "GtkCheckMenuItem" style:highest "murrine-radiocheck-menu"
class "GtkRadioMenuItem" style:highest "murrine-radiocheck-menu"
# Treeview header
widget_class "*.<GtkTreeView>.<GtkButton>" style "murrine-treeview-header"
widget_class "*.<GtkCTree>.<GtkButton>" style "murrine-treeview-header"
widget_class "*.<GtkList>.<GtkButton>" style "murrine-treeview-header"
widget_class "*.<GtkCList>.<GtkButton>" style "murrine-treeview-header"
################################
# FIXME: This will not work if one embeds eg. a button into the tooltip.
################################
widget "gtk-tooltip*" style "murrine-tooltips"
###################################################
# SPECIAL CASES AND WORKAROUNDS
###################################################
####
##GtkComboBox
####
# Wrokaround style for places where the text color is used instead of the fg color.
style "text_is_fg_color_workaround" {
text[NORMAL] = @fg_color
text[PRELIGHT] = @fg_color
text[SELECTED] = @selected_fg_color
text[ACTIVE] = @fg_color
text[INSENSITIVE] = @button_insensitive_fg_color
}
####
##下拉框弹出菜单的菜单项样式
####
# Workaround style for menus where the text color is used instead of the fg color.
style "menuitem_text_is_fg_color_workaround" {
text[NORMAL] = @fg_color
text[PRELIGHT] = @text_color_dark
text[SELECTED] = @selected_fg_color
text[ACTIVE] = @fg_color
text[INSENSITIVE] = @button_insensitive_fg_color
bg[SELECTED] = @selected_colors_dark
}
####
##下拉框弹出菜单的样式
####
style "menu_bg_color_workaround" {
bg[NORMAL] = @button_bg_color
}
# Workaround style for places where the fg color is used instead of the text color.
style "fg_is_text_color_workaround" {
fg[NORMAL] = @text_color
fg[PRELIGHT] = @text_color
fg[SELECTED] = @selected_fg_color
fg[ACTIVE] = @selected_fg_color
fg[INSENSITIVE] = @button_insensitive_fg_color
}
# Work around for http://bugzilla.gnome.org/show_bug.cgi?id=382646
# Note that this work around assumes that the combobox is _not_ in appears-as-list mode.
widget_class "*.<GtkComboBox>.<GtkCellView>" style "text_is_fg_color_workaround"
# This is the part of the workaround that fixes the menus
widget "*.gtk-combobox-popup-menu" style "menu_bg_color_workaround"
widget "*.gtk-combobox-popup-menu.*" style "menuitem_text_is_fg_color_workaround"
# Work around the usage of GtkLabel inside GtkListItems to display text.
# This breaks because the label is shown on a background that is based on the base color.
widget_class "*<GtkListItem>*" style "fg_is_text_color_workaround"
# GtkCList also uses the fg color to draw text on top of the base colors.
widget_class "*<GtkCList>" style "fg_is_text_color_workaround"
# Caja when renaming files, and maybe other places.
widget_class "*<EelEditableLabel>" style "fg_is_text_color_workaround"
# Thickness for indicator menu items
widget "*IdoEntryMenuItem*" style "murrine-wide"
# XFCE desktop icon text looks weird when murrine textstyle is on.
style "xfdesktop-icon-view" { engine "murrine" { textstyle = 0 }}
widget_class "*XfdesktopIconView*" style "xfdesktop-icon-view"
widget "xfwm4-tabwin*" style "murrine-dark"
####
##工具栏分隔符
####
# Invisible toolbar separator
style "murrine-toolseparator" {
xthickness = 0
ythickness = 0
engine "pixmap" {
image {
function = BOX
file = "widgets/Others/null.png"
border = { 2, 2, 2, 2 }
stretch = TRUE
}
}
}
class "GtkSeparatorToolItem" style "murrine-toolseparator"
# Various performance fixes if murrine textstyle is on by default in the theme.
style "performance-fix" {engine "murrine" {textstyle = 0}}
widget_class "*gtkmm__GtkWindow*" style "performance-fix" # Inkscape
widget_class "*GimpDisplayShell*" style "performance-fix" # Gimp
widget_class "*GimpToolbox*" style "performance-fix"
widget_class "*GimpMenuDock*" style "performance-fix"
widget "*OOoFixed*" style "performance-fix" # Openoffice/Libreoffice
widget_class "*MozContainer*" style "performance-fix" # Firefox (Not sure if this one does anything though.)
### EXTERNAL FILES ###
#include "apps/chromium.rc" # Chromium styling
#include "apps/thunar.rc" # PCManFM styling
include "apps/caja.rc" # Caja styling
#include "apps/pluma.rc" # Pluma styling
include "apps/ukuimenu.rc" # Kylin startup-menu styling
include "apps/mate-terminal.rc"
include "apps/ukuicc.rc" # Kylin control center styling
|