A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/themix-project/themix-gui/commit/329052d3e6f80c6700c9edb374369d0c05e5ff2b below:

use the same colorscheme object (f… · themix-project/themix-gui@329052d · GitHub

File tree Expand file treeCollapse file tree 1 file changed

+3

-7

lines changed

Filter options

Expand file treeCollapse file tree 1 file changed

+3

-7

lines changed Original file line number Diff line number Diff line change

@@ -467,10 +467,6 @@ def mix(color1, color2, amount):

467 467

)

468 468 469 469

def update_preview(self, colorscheme, theme_plugin, icons_plugin):

470 -

_colorscheme = colorscheme

471 -

colorscheme = {}

472 -

colorscheme.update(_colorscheme)

473 - 474 470

colorscheme_with_fallbacks = {}

475 471

for theme_value in THEME_MODEL:

476 472

if 'key' not in theme_value:

@@ -483,7 +479,7 @@ def update_preview(self, colorscheme, theme_plugin, icons_plugin):

483 479

if not theme_plugin:

484 480

self.gtk_preview.hide()

485 481

else:

486 -

theme_plugin.preview_before_load_callback(self, colorscheme)

482 +

theme_plugin.preview_before_load_callback(self, colorscheme_with_fallbacks)

487 483 488 484

self.override_css_style(colorscheme_with_fallbacks, theme_plugin)

489 485

self.update_preview_colors(colorscheme_with_fallbacks)

@@ -496,10 +492,10 @@ def update_preview(self, colorscheme, theme_plugin, icons_plugin):

496 492

if not icons_plugin:

497 493

self.icons_preview.hide()

498 494

else:

499 -

self.icons_preview.update_preview(colorscheme, icons_plugin)

495 +

self.icons_preview.update_preview(colorscheme_with_fallbacks, icons_plugin)

500 496

self.icons_preview.show()

501 497 502 -

self.terminal_preview.update_preview(colorscheme)

498 +

self.terminal_preview.update_preview(colorscheme_with_fallbacks)

503 499 504 500

def get_theme_css_provider(self, theme_plugin):

505 501

css_dir = theme_plugin.gtk_preview_dir

You can’t perform that action at this time.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4