HAEY KCUF! SMARTSHIFT!
This commit is contained in:
parent
80b60dfa84
commit
3851be3898
2
LICENSE
2
LICENSE
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* appchan x - Version 2.1.3 - 2013-07-05
|
||||
* appchan x - Version 2.1.3 - 2013-07-06
|
||||
*
|
||||
* Licensed under the MIT license.
|
||||
* https://github.com/zixaphir/appchan-x/blob/master/LICENSE
|
||||
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -235,10 +235,6 @@ Config =
|
||||
true
|
||||
'Bookmark threads.'
|
||||
]
|
||||
'Toggleable Thread Watcher': [
|
||||
false
|
||||
'Adds a shortcut for the thread watcher, hides the watcher by default, and makes it scroll with the page.'
|
||||
]
|
||||
'Auto Watch': [
|
||||
true
|
||||
'Automatically watch threads you start.'
|
||||
@ -648,6 +644,11 @@ Config =
|
||||
false
|
||||
'Apply a filter to mascots to try to turn them into silhouettes.'
|
||||
]
|
||||
'Silhouette Contrast': [
|
||||
'0'
|
||||
'A number to increase the contrast of silhouettes. Suggested values: 0, 8, 16 ...'
|
||||
'text'
|
||||
]
|
||||
|
||||
Navigation:
|
||||
'Navigation Alignment': [
|
||||
|
||||
@ -171,12 +171,13 @@ Style =
|
||||
theme: (theme) ->
|
||||
bgColor = new Style.color(Style.colorToHex(backgroundC = theme["Background Color"]) or 'aaaaaa')
|
||||
replybg = new Style.color Style.colorToHex theme["Reply Background"]
|
||||
replyRGB = "rgb(#{replybg.shiftRGB parseInt(Conf['Silhouette Contrast'], 10), true})"
|
||||
|
||||
Style.lightTheme = bgColor.isLight()
|
||||
|
||||
Style.svg.innerHTML = """
|
||||
<svg xmlns='http://www.w3.org/2000/svg' height=0><filter id='captcha-filter' color-interpolation-filters='sRGB'><feColorMatrix values='#{Style.filter Style.matrix theme["Text"], theme["Input Background"]} 0 0 0 1 0' /></filter></svg>
|
||||
<svg xmlns='http://www.w3.org/2000/svg' height=0><filter id='mascot-filter' color-interpolation-filters='sRGB'><feColorMatrix values='#{Style.silhouette Style.matrix theme["Reply Background"]} 0 0 0 1 0' /></filter></svg>
|
||||
<svg xmlns='http://www.w3.org/2000/svg' height=0><filter id='mascot-filter' color-interpolation-filters='sRGB'><feColorMatrix values='#{Style.silhouette Style.matrix replyRGB} 0 0 0 1 0' /></filter></svg>
|
||||
<svg xmlns='http://www.w3.org/2000/svg' height=0><filter id="grayscale"><feColorMatrix id="color" type="saturate" values="0" /></filter></svg>
|
||||
<svg xmlns='http://www.w3.org/2000/svg' height=0><filter id="icons-filter" color-interpolation-filters='sRGB'><feColorMatrix values='-1 0 0 0 1 0 -1 0 0 1 0 0 -1 0 1 0 0 0 1 0' /></filter></svg>
|
||||
"""
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user