diff --git a/user/app/browser/qutebrowser.nix b/user/app/browser/qutebrowser.nix index 7e79a8e4..d42cfcbb 100644 --- a/user/app/browser/qutebrowser.nix +++ b/user/app/browser/qutebrowser.nix @@ -13,7 +13,7 @@ let generateHomepage = name: font: config: } /*paragraphs*/ - p { + a, p { font-family:''+font+''; font-size:24px; @@ -23,27 +23,47 @@ let generateHomepage = name: font: config: line-height: 1.35; margin-top: 0; margin-bottom: 0; + + text-decoration: none; + } + a:hover { + color: #''+config.lib.stylix.colors.base07+''; } .open { color: #''+config.lib.stylix.colors.base09+''; font-weight: bold; } + .open:hover { + background-color: #''+config.lib.stylix.colors.base09+''; + } .quickmarks { color: #''+config.lib.stylix.colors.base0A+''; font-weight: bold; } + .quickmarks:hover { + background-color: #''+config.lib.stylix.colors.base0A+''; + } .history { color: #''+config.lib.stylix.colors.base0B+''; font-weight: bold; } + .history:hover { + background-color: #''+config.lib.stylix.colors.base0B+''; + } .newtab { color: #''+config.lib.stylix.colors.base0C+''; font-weight: bold; } + .newtab:hover { + background-color: #''+config.lib.stylix.colors.base0C+''; + } .close { color: #''+config.lib.stylix.colors.base0D+''; font-weight: bold; } + .close:hover { + background-color: #''+config.lib.stylix.colors.base0D+''; + } /*div*/ div { @@ -76,11 +96,10 @@ let generateHomepage = name: font: config:
-

[o] [Search]

-

[b] [Quickmarks]

-

[S h] [History]

-

[t] [New tab]

-

[x] [Close tab]

+ [o] [Search]

+
[b] [Quickmarks]

+
[t] [New tab]

+
[x] [Close tab]

@@ -115,8 +134,20 @@ if (os.path.isfile(secretFile)): import qutesecrets secretsExists = True +quickmarksFile = os.path.join(os.path.dirname(__file__),'quickmarks') +quickmarksHtmlFilePath = os.path.join(os.path.dirname(__file__),'quickmarks.html') +quickmarksHtmlFile = open(quickmarksHtmlFilePath,"w") +quickmarksHtmlFileText = 'My Local Dashboard Awesome Homepage



Quickmarks


' +with open(quickmarksFile) as myQuickmarks: + for line in myQuickmarks: + quickmarkData = line.split() + quickmarksHtmlFileText += ''+quickmarkData[0]+'
' +quickmarksHtmlFileText += '
' +quickmarksHtmlFile.write(quickmarksHtmlFileText) +quickmarksHtmlFile.close() + config.set('scrolling.smooth',True) -config.set('qt.args',['ignore-gpu-blacklist','enable-gpu-rasterization','enable-accelerated-video-decode','enable-quic','enable-zero-copy','enable-native-gpu-memory-buffers','num-raster-threads=4']) +config.set('qt.args',['ignore-gpu-blacklist','enable-gpu-rasterization','enable-accelerated-video-decode','enable-quic','enable-zero-copy','enable-native-gpu-memory-buffers','num-raster-threads=4','allow-file-access-from-files']) config.set('qt.workarounds.disable_accelerated_2d_canvas','never') config.load_autoconfig(True)